Hi! Attached patch fixes ticket #6994, unknown tag names are ignored by FFmpeg.
Please comment, Carl Eugen
From 19f1896fc182f2bc8d1c715883ab40aaf17fc828 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos <ceffm...@gmail.com> Date: Tue, 30 Jan 2018 10:24:08 +0100 Subject: [PATCH] lavc/exr: Ignore long names flag. The decoder only reads known names, others are skipped. Fixes ticket #6994. --- libavcodec/exr.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/libavcodec/exr.c b/libavcodec/exr.c index 454dc74..802618a 100644 --- a/libavcodec/exr.c +++ b/libavcodec/exr.c @@ -1349,11 +1349,8 @@ static int decode_header(EXRContext *s, AVFrame *frame) flags = bytestream2_get_le24(&s->gb); - if (flags == 0x00) - s->is_tile = 0; - else if (flags & 0x02) - s->is_tile = 1; - else{ + s->is_tile = !!(flags & 0x02); + if (flags & ~0x06) { avpriv_report_missing_feature(s->avctx, "flags %d", flags); return AVERROR_PATCHWELCOME; } -- 1.7.10.4
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel