avformat/iamf_parse: fix yet annother logical coding error

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
Paul B Mahol 2023-12-21 12:28:00 +01:00 committed by James Almer
parent 0c03f4c6b9
commit 04cb307508
1 changed files with 1 additions and 1 deletions

View File

@ -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);