[FFmpeg-cvslog] avformat/flvdec: set broken_sizes for "metadatacreator : MEGA"

Michael Niedermayer git at videolan.org
Mon Oct 12 05:39:03 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Mon Oct 12 03:32:54 2015 +0200| [ce0834bdd6e6490d240d76ec8d7845ca0aef1e44] | committer: Michael Niedermayer

avformat/flvdec: set broken_sizes for "metadatacreator : MEGA"

The 2nd size value is wrong for the sample file

Fixes: Ticket4903

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ce0834bdd6e6490d240d76ec8d7845ca0aef1e44
---

 libavformat/flvdec.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index 79bcaee..7b43449 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -525,6 +525,8 @@ static int amf_parse_object(AVFormatContext *s, AVStream *astream,
                         if (version > 0 && version <= 655)
                             flv->broken_sizes = 1;
                     }
+                } else if (!strcmp(key, "metadatacreator") && !strcmp(str_val, "MEGA")) {
+                    flv->broken_sizes = 1;
                 }
             }
         }



More information about the ffmpeg-cvslog mailing list