Revision 942de2f4 libavformat/utils.c

View differences:

libavformat/utils.c
588 588
            pd->buf_size += pkt->size;
589 589
            memset(pd->buf+pd->buf_size, 0, AVPROBE_PADDING_SIZE);
590 590

  
591
            if(av_log2(pd->buf_size) != av_log2(pd->buf_size - pkt->size)){
591 592
            set_codec_from_probe_data(st, pd, 1);
592 593
            if(st->codec->codec_id != CODEC_ID_PROBE){
593 594
                pd->buf_size=0;
594 595
                av_freep(&pd->buf);
595 596
            }
597
            }
596 598
        }
597 599
    }
598 600
}

Also available in: Unified diff