Revision 91d51ee4 libavcodec/mpeg12.c

View differences:

libavcodec/mpeg12.c
718 718
            if(((int32_t)GET_CACHE(re, &s->gb)) <= (int32_t)0xBFFFFFFF)
719 719
                goto end;
720 720
        }
721
#if MIN_CACHE_BITS < 19
722
        UPDATE_CACHE(re, &s->gb);
723
#endif
724 721
        /* now quantify & encode AC coefficients */
725 722
        for(;;) {
726 723
            GET_RL_VLC(level, run, re, &s->gb, rl->rl_vlc[0], TEX_VLC_BITS, 2, 0);
......
760 757
            }
761 758

  
762 759
            block[j] = level;
763
#if MIN_CACHE_BITS < 19
764
            UPDATE_CACHE(re, &s->gb);
765
#endif
766 760
            if(((int32_t)GET_CACHE(re, &s->gb)) <= (int32_t)0xBFFFFFFF)
767 761
                break;
768
#if MIN_CACHE_BITS >= 19
769 762
            UPDATE_CACHE(re, &s->gb);
770
#endif
771 763
        }
772 764
end:
773 765
        LAST_SKIP_BITS(re, &s->gb, 2);
......
800 792
            if(((int32_t)GET_CACHE(re, &s->gb)) <= (int32_t)0xBFFFFFFF)
801 793
                goto end;
802 794
        }
803
#if MIN_CACHE_BITS < 19
804
        UPDATE_CACHE(re, &s->gb);
805
#endif
806 795

  
807 796
        /* now quantify & encode AC coefficients */
808 797
        for(;;) {
......
839 828
            }
840 829

  
841 830
            block[j] = level;
842
#if MIN_CACHE_BITS < 19
843
            UPDATE_CACHE(re, &s->gb);
844
#endif
845 831
            if(((int32_t)GET_CACHE(re, &s->gb)) <= (int32_t)0xBFFFFFFF)
846 832
                break;
847
#if MIN_CACHE_BITS >= 19
848 833
            UPDATE_CACHE(re, &s->gb);
849
#endif
850 834
        }
851 835
end:
852 836
        LAST_SKIP_BITS(re, &s->gb, 2);
......
891 875
            if(((int32_t)GET_CACHE(re, &s->gb)) <= (int32_t)0xBFFFFFFF)
892 876
                goto end;
893 877
        }
894
#if MIN_CACHE_BITS < 19
895
        UPDATE_CACHE(re, &s->gb);
896
#endif
897 878

  
898 879
        /* now quantify & encode AC coefficients */
899 880
        for(;;) {
......
927 908

  
928 909
            mismatch ^= level;
929 910
            block[j] = level;
930
#if MIN_CACHE_BITS < 19
931
            UPDATE_CACHE(re, &s->gb);
932
#endif
933 911
            if(((int32_t)GET_CACHE(re, &s->gb)) <= (int32_t)0xBFFFFFFF)
934 912
                break;
935
#if MIN_CACHE_BITS >= 19
936 913
            UPDATE_CACHE(re, &s->gb);
937
#endif
938 914
        }
939 915
end:
940 916
        LAST_SKIP_BITS(re, &s->gb, 2);
......
969 945
        if(((int32_t)GET_CACHE(re, &s->gb)) <= (int32_t)0xBFFFFFFF)
970 946
            goto end;
971 947
    }
972
#if MIN_CACHE_BITS < 19
973
    UPDATE_CACHE(re, &s->gb);
974
#endif
975 948

  
976 949
    /* now quantify & encode AC coefficients */
977 950
    for(;;) {
......
1000 973
        }
1001 974

  
1002 975
        block[j] = level;
1003
#if MIN_CACHE_BITS < 19
1004
        UPDATE_CACHE(re, &s->gb);
1005
#endif
1006 976
        if(((int32_t)GET_CACHE(re, &s->gb)) <= (int32_t)0xBFFFFFFF)
1007 977
            break;
1008
#if MIN_CACHE_BITS >=19
1009 978
        UPDATE_CACHE(re, &s->gb);
1010
#endif
1011 979
    }
1012 980
end:
1013 981
    LAST_SKIP_BITS(re, &s->gb, 2);

Also available in: Unified diff