summaryrefslogtreecommitdiff
path: root/libavformat/flvdec.c
diff options
context:
space:
mode:
authorNikolas Bowe <nbowe-at-google.com@ffmpeg.org>2018-02-16 15:25:17 -0800
committerMichael Niedermayer <michael@niedermayer.cc>2018-02-23 01:53:34 +0100
commitce8a12fb72271a6e4f50ffcb360e7fdac6eccdcb (patch)
tree43789d81b94d4e6a8eeac7e9484d6fe3702015de /libavformat/flvdec.c
parentaedbb3c72c97099a633c151b68d29b63c2a89339 (diff)
avformat/flvdec: Set broken_sizes for FlixEngine.
we found some very old videos which suffered from corruption after 9e6a2427558a718be0c1fffacffd935f630a7a8d, but were fine before. These had "End of AC stream reached in vp6_parse_coeff" warnings in logs. These also had flv Packet mismatch warnings. Adding FlixEngine to the list of flv muxers which produce broken packet sizes fixes this corruption. FlixEngine is very old and not maintained or available anymore (since 2010), so we won't need to worry about newer versions fixing the issue. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/flvdec.c')
-rw-r--r--libavformat/flvdec.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index 0217cef842..34c3e08bad 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -598,8 +598,10 @@ 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;
+ } else if (!strcmp(key, "metadatacreator")) {
+ if ( !strcmp (str_val, "MEGA")
+ || !strncmp(str_val, "FlixEngine", 10))
+ flv->broken_sizes = 1;
}
}
}