You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
Debug av_log() about stream probing from ffmbc.
Originally committed as revision 20842 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -609,7 +609,7 @@ int av_read_packet(AVFormatContext *s, AVPacket *pkt)
|
|||||||
|
|
||||||
if(st->codec->codec_id == CODEC_ID_PROBE){
|
if(st->codec->codec_id == CODEC_ID_PROBE){
|
||||||
AVProbeData *pd = &st->probe_data;
|
AVProbeData *pd = &st->probe_data;
|
||||||
|
av_log(s, AV_LOG_DEBUG, "probing stream %d\n", st->index);
|
||||||
--st->probe_packets;
|
--st->probe_packets;
|
||||||
|
|
||||||
pd->buf = av_realloc(pd->buf, pd->buf_size+pkt->size+AVPROBE_PADDING_SIZE);
|
pd->buf = av_realloc(pd->buf, pd->buf_size+pkt->size+AVPROBE_PADDING_SIZE);
|
||||||
@@ -622,6 +622,7 @@ int av_read_packet(AVFormatContext *s, AVPacket *pkt)
|
|||||||
if(st->codec->codec_id != CODEC_ID_PROBE){
|
if(st->codec->codec_id != CODEC_ID_PROBE){
|
||||||
pd->buf_size=0;
|
pd->buf_size=0;
|
||||||
av_freep(&pd->buf);
|
av_freep(&pd->buf);
|
||||||
|
av_log(s, AV_LOG_DEBUG, "probed stream %d\n", st->index);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user