Revision 4e2b9bcc

View differences:

libavcodec/mpeg12.c
737 737
            if(((int32_t)GET_CACHE(re, &s->gb)) <= (int32_t)0xBFFFFFFF)
738 738
                goto end;
739 739
        }
740

  
740
#if MIN_CACHE_BITS < 19
741
        UPDATE_CACHE(re, &s->gb);
742
#endif
741 743
        /* now quantify & encode AC coefs */
742 744
        for(;;) {
743 745
            GET_RL_VLC(level, run, re, &s->gb, rl->rl_vlc[0], TEX_VLC_BITS, 2, 0);
......
777 779
            }
778 780

  
779 781
            block[j] = level;
782
#if MIN_CACHE_BITS < 19
783
            UPDATE_CACHE(re, &s->gb);
784
#endif
780 785
            if(((int32_t)GET_CACHE(re, &s->gb)) <= (int32_t)0xBFFFFFFF)
781 786
                break;
787
#if MIN_CACHE_BITS >= 19
782 788
            UPDATE_CACHE(re, &s->gb);
789
#endif
783 790
        }
784 791
end:
785 792
        LAST_SKIP_BITS(re, &s->gb, 2);
......
812 819
            if(((int32_t)GET_CACHE(re, &s->gb)) <= (int32_t)0xBFFFFFFF)
813 820
                goto end;
814 821
        }
822
#if MIN_CACHE_BITS < 19
823
        UPDATE_CACHE(re, &s->gb);
824
#endif
815 825

  
816 826
        /* now quantify & encode AC coefs */
817 827
        for(;;) {
......
848 858
            }
849 859

  
850 860
            block[j] = level;
861
#if MIN_CACHE_BITS < 19
862
            UPDATE_CACHE(re, &s->gb);
863
#endif
851 864
            if(((int32_t)GET_CACHE(re, &s->gb)) <= (int32_t)0xBFFFFFFF)
852 865
                break;
866
#if MIN_CACHE_BITS >= 19
853 867
            UPDATE_CACHE(re, &s->gb);
868
#endif
854 869
        }
855 870
end:
856 871
        LAST_SKIP_BITS(re, &s->gb, 2);
......
895 910
            if(((int32_t)GET_CACHE(re, &s->gb)) <= (int32_t)0xBFFFFFFF)
896 911
                goto end;
897 912
        }
913
#if MIN_CACHE_BITS < 19
914
        UPDATE_CACHE(re, &s->gb);
915
#endif
898 916

  
899 917
        /* now quantify & encode AC coefs */
900 918
        for(;;) {
......
928 946

  
929 947
            mismatch ^= level;
930 948
            block[j] = level;
949
#if MIN_CACHE_BITS < 19
950
            UPDATE_CACHE(re, &s->gb);
951
#endif
931 952
            if(((int32_t)GET_CACHE(re, &s->gb)) <= (int32_t)0xBFFFFFFF)
932 953
                break;
954
#if MIN_CACHE_BITS >= 19
933 955
            UPDATE_CACHE(re, &s->gb);
956
#endif
934 957
        }
935 958
end:
936 959
        LAST_SKIP_BITS(re, &s->gb, 2);
......
965 988
        if(((int32_t)GET_CACHE(re, &s->gb)) <= (int32_t)0xBFFFFFFF)
966 989
            goto end;
967 990
    }
991
#if MIN_CACHE_BITS < 19
992
    UPDATE_CACHE(re, &s->gb);
993
#endif
968 994

  
969 995
    /* now quantify & encode AC coefs */
970 996
    for(;;) {
......
993 1019
        }
994 1020

  
995 1021
        block[j] = level;
1022
#if MIN_CACHE_BITS < 19
1023
        UPDATE_CACHE(re, &s->gb);
1024
#endif
996 1025
        if(((int32_t)GET_CACHE(re, &s->gb)) <= (int32_t)0xBFFFFFFF)
997 1026
            break;
1027
#if MIN_CACHE_BITS >=19
998 1028
        UPDATE_CACHE(re, &s->gb);
1029
#endif
999 1030
    }
1000 1031
end:
1001 1032
    LAST_SKIP_BITS(re, &s->gb, 2);

Also available in: Unified diff