diff options
author | Paul B Mahol <onemda@gmail.com> | 2023-12-21 12:28:00 +0100 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2023-12-21 12:24:54 -0300 |
commit | 04cb30750878d0f7df35ede5e261914d48dbb31d (patch) | |
tree | 397a9f3e8f22e34af6e1383c65975725570e74c0 /libavformat | |
parent | 0c03f4c6b9990d22622c58e5e45f9ce7aac939da (diff) | |
download | ffmpeg-04cb30750878d0f7df35ede5e261914d48dbb31d.tar.gz |
avformat/iamf_parse: fix yet annother logical coding error
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/iamf_parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |