Hi!

The Simbiosis IMX probe function looks strict enough, do not check for
a field that does not cause decoding to fail.

Please comment, Carl Eugen
From 62ce4e42c1dae6696007e22cd13a8e43eabbc38d Mon Sep 17 00:00:00 2001
From: Carl Eugen Hoyos <ceffm...@gmail.com>
Date: Sun, 21 Feb 2021 10:31:16 +0100
Subject: [PATCH] lavf/imx: Do not probe number of frames.

The field never causes decoding to fail.
---
 libavformat/imx.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/libavformat/imx.c b/libavformat/imx.c
index 66f18177a5..bcf3a16d38 100644
--- a/libavformat/imx.c
+++ b/libavformat/imx.c
@@ -38,8 +38,6 @@ static int simbiosis_imx_probe(const AVProbeData *p)
 {
     if (AV_RL32(p->buf) != IMX_TAG)
         return 0;
-    if (AV_RN32(p->buf+4) == 0)
-        return 0;
     if (AV_RN16(p->buf+8) == 0)
         return 0;
     if (AV_RL16(p->buf+10) != 0x102)
-- 
2.29.2

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to