[FFmpeg-cvslog] avformat/iamf_parse: fix yet annother logical coding error

Paul B Mahol git at videolan.org
Thu Dec 21 17:25:23 EET 2023


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu Dec 21 12:28:00 2023 +0100| [04cb30750878d0f7df35ede5e261914d48dbb31d] | committer: James Almer

avformat/iamf_parse: fix yet annother logical coding error

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=04cb30750878d0f7df35ede5e261914d48dbb31d
---

 libavformat/iamf_parse.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/iamf_parse.c b/libavformat/iamf_parse.c
index 377831388f..8c86c2dce6 100644
--- a/libavformat/iamf_parse.c
+++ b/libavformat/iamf_parse.c
@@ -931,7 +931,7 @@ static int mix_presentation_obu(void *s, IAMFContext *c, AVIOContext *pb, int le
             }
 
             submix_layout->layout_type = byte >> 6;
-            if (submix_layout->layout_type < AV_IAMF_SUBMIX_LAYOUT_TYPE_LOUDSPEAKERS &&
+            if (submix_layout->layout_type < AV_IAMF_SUBMIX_LAYOUT_TYPE_LOUDSPEAKERS ||
                 submix_layout->layout_type > AV_IAMF_SUBMIX_LAYOUT_TYPE_BINAURAL) {
                 av_log(s, AV_LOG_ERROR, "Invalid Layout type %u in a submix from Mix Presentation %u\n",
                        submix_layout->layout_type, mix_presentation_id);



More information about the ffmpeg-cvslog mailing list