Revision e91f4bf1 libavcodec/msmpeg4.c

View differences:

libavcodec/msmpeg4.c
1731 1731
    OPEN_READER(re, &s->gb);
1732 1732
    for(;;) {
1733 1733
        UPDATE_CACHE(re, &s->gb);
1734
        GET_RL_VLC(level, run, re, &s->gb, rl_vlc, TEX_VLC_BITS, 2);
1734
        GET_RL_VLC(level, run, re, &s->gb, rl_vlc, TEX_VLC_BITS, 2, 0);
1735 1735
        if (level==0) {
1736 1736
            int cache;
1737 1737
            cache= GET_CACHE(re, &s->gb);
......
1829 1829
#else
1830 1830
                    SKIP_BITS(re, &s->gb, 2);
1831 1831
#endif
1832
                    GET_RL_VLC(level, run, re, &s->gb, rl_vlc, TEX_VLC_BITS, 2);
1832
                    GET_RL_VLC(level, run, re, &s->gb, rl_vlc, TEX_VLC_BITS, 2, 1);
1833 1833
                    i+= run + rl->max_run[run>>7][level/qmul] + run_diff; //FIXME opt indexing
1834 1834
                    level = (level ^ SHOW_SBITS(re, &s->gb, 1)) - SHOW_SBITS(re, &s->gb, 1);
1835 1835
                    LAST_SKIP_BITS(re, &s->gb, 1);
......
1848 1848
#else
1849 1849
                SKIP_BITS(re, &s->gb, 1);
1850 1850
#endif
1851
                GET_RL_VLC(level, run, re, &s->gb, rl_vlc, TEX_VLC_BITS, 2);
1851
                GET_RL_VLC(level, run, re, &s->gb, rl_vlc, TEX_VLC_BITS, 2, 1);
1852 1852
                i+= run;
1853 1853
                level = level + rl->max_level[run>>7][(run-1)&63] * qmul;//FIXME opt indexing
1854 1854
                level = (level ^ SHOW_SBITS(re, &s->gb, 1)) - SHOW_SBITS(re, &s->gb, 1);

Also available in: Unified diff