[FFmpeg-devel] [PATCH] avformat/flvdec: Set broken_sizes for FlixEngine.

Tomas Härdin tjoppen at acc.umu.se
Sat Feb 17 15:06:20 EET 2018


fre 2018-02-16 klockan 15:25 -0800 skrev Nikolas Bowe:
> ---
>  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))) {

Nit: please align the inner str(n)cmp:s

FlixEngine is the VP6 thing, right? Awful, awful tool. Patch probably
OK though

/Tomas



More information about the ffmpeg-devel mailing list