Commit 8529f9b3 authored by Michael Niedermayer's avatar Michael Niedermayer

av_find_stream_info: Print more details about max anaylize duration failures.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 155d1d18
...@@ -2327,8 +2327,9 @@ int av_find_stream_info(AVFormatContext *ic) ...@@ -2327,8 +2327,9 @@ int av_find_stream_info(AVFormatContext *ic)
st = ic->streams[pkt->stream_index]; st = ic->streams[pkt->stream_index];
if (st->codec_info_nb_frames>1) { 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) { int64_t t;
av_log(ic, AV_LOG_WARNING, "max_analyze_duration reached\n"); 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; break;
} }
st->info->codec_info_duration += pkt->duration; st->info->codec_info_duration += pkt->duration;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment