Revision 91d51ee4 libavcodec/mpeg4videodec.c

View differences:

libavcodec/mpeg4videodec.c
1023 1023
                    if(last) i+=192;
1024 1024
                } else {
1025 1025
                    /* second escape */
1026
#if MIN_CACHE_BITS < 20
1027
                    LAST_SKIP_BITS(re, &s->gb, 2);
1028
                    UPDATE_CACHE(re, &s->gb);
1029
#else
1030 1026
                    SKIP_BITS(re, &s->gb, 2);
1031
#endif
1032 1027
                    GET_RL_VLC(level, run, re, &s->gb, rl_vlc, TEX_VLC_BITS, 2, 1);
1033 1028
                    i+= run + rl->max_run[run>>7][level/qmul] +1; //FIXME opt indexing
1034 1029
                    level = (level ^ SHOW_SBITS(re, &s->gb, 1)) - SHOW_SBITS(re, &s->gb, 1);
......
1036 1031
                }
1037 1032
            } else {
1038 1033
                /* first escape */
1039
#if MIN_CACHE_BITS < 19
1040
                LAST_SKIP_BITS(re, &s->gb, 1);
1041
                UPDATE_CACHE(re, &s->gb);
1042
#else
1043 1034
                SKIP_BITS(re, &s->gb, 1);
1044
#endif
1045 1035
                GET_RL_VLC(level, run, re, &s->gb, rl_vlc, TEX_VLC_BITS, 2, 1);
1046 1036
                i+= run;
1047 1037
                level = level + rl->max_level[run>>7][(run-1)&63] * qmul;//FIXME opt indexing

Also available in: Unified diff