[FFmpeg-devel] [PATCH] avformat/flvdec: Set broken_sizes for FlixEngine.
Nikolas Bowe
nbowe at google.com
Sat Feb 17 01:25:17 EET 2018
---
libavformat/flvdec.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index 0217cef842..b86451fcbf 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -598,7 +598,9 @@ 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")) {
+ } else if (!strcmp(key, "metadatacreator")
+ && (!strcmp(str_val, "MEGA")
+ || !strncmp(str_val, "FlixEngine", 10))) {
flv->broken_sizes = 1;
}
}
--
2.16.1.291.g4437f3f132-goog
More information about the ffmpeg-devel
mailing list