From ce0834bdd6e6490d240d76ec8d7845ca0aef1e44 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 12 Oct 2015 03:32:54 +0200 Subject: 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 --- libavformat/flvdec.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavformat/flvdec.c') 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; } } } -- cgit v1.1