Revision 76cd98b4

View differences:

libavcodec/mjpegdec.c
826 826
            if (s->restart_interval && !s->restart_count)
827 827
                s->restart_count = s->restart_interval;
828 828

  
829
            if(get_bits_count(&s->gb)>s->gb.size_in_bits){
830
                av_log(s->avctx, AV_LOG_ERROR, "overread %d\n", get_bits_count(&s->gb) - s->gb.size_in_bits);
831
                return -1;
832
            }
829 833
            for(i=0;i<nb_components;i++) {
830 834
                uint8_t *ptr;
831 835
                int n, h, v, x, y, c, j;

Also available in: Unified diff