diff mbox

[FFmpeg-devel] avformat/flvdec: remove meaningless warning

Message ID 20170302100102.11968-1-nfxjfg@googlemail.com
State Accepted
Commit ef86488696a84ae98028e4e199d51b10e331399d
Headers show

Commit Message

wm4 March 2, 2017, 10:01 a.m. UTC
Ever since the codecpar changes, this has been always printed when
opening a flv file. This is because the codecpar changes made all
streams to be added lazily as read_packet is called.
---
 libavformat/flvdec.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Steven Liu March 2, 2017, 2:40 p.m. UTC | #1
2017-03-02 18:01 GMT+08:00 wm4 <nfxjfg@googlemail.com>:

> Ever since the codecpar changes, this has been always printed when
> opening a flv file. This is because the codecpar changes made all
> streams to be added lazily as read_packet is called.
> ---
>  libavformat/flvdec.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
> index 520a3a0034..3959a3665a 100644
> --- a/libavformat/flvdec.c
> +++ b/libavformat/flvdec.c
> @@ -1033,7 +1033,6 @@ skip:
>          }
>          if (i == s->nb_streams) {
>              static const enum AVMediaType stream_types[] =
> {AVMEDIA_TYPE_VIDEO, AVMEDIA_TYPE_AUDIO, AVMEDIA_TYPE_SUBTITLE};
> -            av_log(s, AV_LOG_WARNING, "%s stream discovered after head
> already parsed\n", av_get_media_type_string(stream_types[stream_type]));
>              st = create_stream(s, stream_types[stream_type]);
>              if (!st)
>                  return AVERROR(ENOMEM);
> --
> 2.11.0
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>


lgtm
diff mbox

Patch

diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index 520a3a0034..3959a3665a 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -1033,7 +1033,6 @@  skip:
         }
         if (i == s->nb_streams) {
             static const enum AVMediaType stream_types[] = {AVMEDIA_TYPE_VIDEO, AVMEDIA_TYPE_AUDIO, AVMEDIA_TYPE_SUBTITLE};
-            av_log(s, AV_LOG_WARNING, "%s stream discovered after head already parsed\n", av_get_media_type_string(stream_types[stream_type]));
             st = create_stream(s, stream_types[stream_type]);
             if (!st)
                 return AVERROR(ENOMEM);