Revision 1b4580d1 libavcodec/h263dec.c

View differences:

libavcodec/h263dec.c
383 383

  
384 384

  
385 385
retry:
386
    if(s->divx_packed && s->xvid_build>=0 && s->bitstream_buffer_size){
387
        int i;
388
        for(i=0; i<buf_size-3; i++){
389
            if(buf[i]==0 && buf[i+1]==0 && buf[i+2]==1){
390
                if(buf[i+3]==0xB0)
391
                    s->bitstream_buffer_size=0;
392
                break;
393
            }
394
        }
395
    }
386 396

  
387 397
    if(s->bitstream_buffer_size && (s->divx_packed || buf_size<20)){ //divx 5.01+/xvid frame reorder
388 398
        init_get_bits(&s->gb, s->bitstream_buffer, s->bitstream_buffer_size*8);

Also available in: Unified diff