[FFmpeg-cvslog] Only complain about missing frame rate for video streams.
Carl Eugen Hoyos
git at videolan.org
Fri Feb 21 18:58:07 CET 2014
ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Fri Feb 21 17:27:20 2014 +0100| [1f7e9be0b034b31617c94b6f7f37a350b9f43c88] | committer: Carl Eugen Hoyos
Only complain about missing frame rate for video streams.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1f7e9be0b034b31617c94b6f7f37a350b9f43c88
---
libavformat/utils.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/utils.c b/libavformat/utils.c
index c4d09e9..b5c5e90 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; "
More information about the ffmpeg-cvslog
mailing list