[FFmpeg-devel] [PATCH]Only complain about missing rates for audio and video streams

Michael Niedermayer michaelni at gmx.at
Fri Feb 21 16:05:23 CET 2014


On Fri, Feb 21, 2014 at 09:24:59AM +0100, Carl Eugen Hoyos wrote:
> Hi!
> 
> Attached patch silences a warning for unknown streams and subtitle streams 
> that probably makes no sense.
> 
> Please comment, Carl Eugen

>  utils.c |    2 ++
>  1 file changed, 2 insertions(+)
> 0b5a51032f03f30a7b8d3cf0072e9971fa4c4be5  patchrate.diff
> diff --git a/libavformat/utils.c b/libavformat/utils.c
> index c4d09e9..2e1ab0e 100644
> --- a/libavformat/utils.c
> +++ b/libavformat/utils.c
> @@ -3062,6 +3062,8 @@ 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 ||
> +                     ic->streams[i]->codec->codec_type == AVMEDIA_TYPE_AUDIO) &&

this should be video only

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

If you think the mosad wants you dead since a long time then you are either
wrong or dead since a long time.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140221/12db87c0/attachment.asc>


More information about the ffmpeg-devel mailing list