mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 20:19:55 +00:00
avoid division by zero in av_find_stream_info() when no time base is set
Originally committed as revision 9637 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
7eed4aef83
commit
b3fc092548
@ -1891,7 +1891,7 @@ int av_find_stream_info(AVFormatContext *ic)
|
||||
(st->codec->codec_id == CODEC_ID_MPEG4 && !st->need_parsing))*/)
|
||||
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;
|
||||
}
|
||||
count++;
|
||||
|
Loading…
Reference in New Issue
Block a user