Commit 579b7ea0 authored by mru's avatar mru

avoid division by zero in av_find_stream_info() when no time base is set


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9637 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent fd81ee2b
...@@ -1891,7 +1891,7 @@ int av_find_stream_info(AVFormatContext *ic) ...@@ -1891,7 +1891,7 @@ int av_find_stream_info(AVFormatContext *ic)
(st->codec->codec_id == CODEC_ID_MPEG4 && !st->need_parsing))*/) (st->codec->codec_id == CODEC_ID_MPEG4 && !st->need_parsing))*/)
try_decode_frame(st, pkt->data, pkt->size); try_decode_frame(st, pkt->data, pkt->size);
if (av_rescale_q(codec_info_duration[st->index], st->time_base, AV_TIME_BASE_Q) >= ic->max_analyze_duration) { if (st->time_base.den > 0 && av_rescale_q(codec_info_duration[st->index], st->time_base, AV_TIME_BASE_Q) >= ic->max_analyze_duration) {
break; break;
} }
count++; count++;
......
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