Revision 25d3fb73 libavformat/utils.c

View differences:

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

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

Also available in: Unified diff