diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2014-02-21 20:27:20 +0400 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2014-02-21 20:27:20 +0400 |
commit | 1f7e9be0b034b31617c94b6f7f37a350b9f43c88 (patch) | |
tree | f7d850a24568658d4b43b70249b958041d094aeb | |
parent | 6e638677712837eb436c71c650f45313553b47ea (diff) |
Only complain about missing frame rate for video streams.
-rw-r--r-- | libavformat/utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index c4d09e99ac..b5c5e9015b 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -3062,6 +3062,7 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options) for (i = 0; i < ic->nb_streams; i++) if (!ic->streams[i]->r_frame_rate.num && ic->streams[i]->info->duration_count <= 1 && + ic->streams[i]->codec->codec_type == AVMEDIA_TYPE_VIDEO && strcmp(ic->iformat->name, "image2")) av_log(ic, AV_LOG_WARNING, "Stream #%d: not enough frames to estimate rate; " |