mirror of https://git.ffmpeg.org/ffmpeg.git
Only complain about missing frame rate for video streams.
This commit is contained in:
parent
6e63867771
commit
1f7e9be0b0
|
@ -3062,6 +3062,7 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
|
||||||
for (i = 0; i < ic->nb_streams; i++)
|
for (i = 0; i < ic->nb_streams; i++)
|
||||||
if (!ic->streams[i]->r_frame_rate.num &&
|
if (!ic->streams[i]->r_frame_rate.num &&
|
||||||
ic->streams[i]->info->duration_count <= 1 &&
|
ic->streams[i]->info->duration_count <= 1 &&
|
||||||
|
ic->streams[i]->codec->codec_type == AVMEDIA_TYPE_VIDEO &&
|
||||||
strcmp(ic->iformat->name, "image2"))
|
strcmp(ic->iformat->name, "image2"))
|
||||||
av_log(ic, AV_LOG_WARNING,
|
av_log(ic, AV_LOG_WARNING,
|
||||||
"Stream #%d: not enough frames to estimate rate; "
|
"Stream #%d: not enough frames to estimate rate; "
|
||||||
|
|
Loading…
Reference in New Issue