diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-05-18 21:39:22 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-05-19 03:45:00 +0200 |
commit | 8529f9b36b7c1b8f2cb36ba2709983517c4b6458 (patch) | |
tree | 819866d43a21d08dffb9455699d8e030274574bf /libavformat/utils.c | |
parent | 155d1d189bf240764a18a6923739e84d09ac5d08 (diff) | |
download | ffmpeg-8529f9b36b7c1b8f2cb36ba2709983517c4b6458.tar.gz |
av_find_stream_info: Print more details about max anaylize duration failures.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 70429a7650..3509620c20 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -2327,8 +2327,9 @@ int av_find_stream_info(AVFormatContext *ic) st = ic->streams[pkt->stream_index]; if (st->codec_info_nb_frames>1) { - if (st->time_base.den > 0 && av_rescale_q(st->info->codec_info_duration, st->time_base, AV_TIME_BASE_Q) >= ic->max_analyze_duration) { - av_log(ic, AV_LOG_WARNING, "max_analyze_duration reached\n"); + int64_t t; + if (st->time_base.den > 0 && (t=av_rescale_q(st->info->codec_info_duration, st->time_base, AV_TIME_BASE_Q)) >= ic->max_analyze_duration) { + av_log(ic, AV_LOG_WARNING, "max_analyze_duration %d reached at %Ld\n", ic->max_analyze_duration, t); break; } st->info->codec_info_duration += pkt->duration; |