This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 6b5b0d6a505649ae5a4828a6dcfb82edee1881cd
Author:     Andreas Rheinhardt <[email protected]>
AuthorDate: Tue Mar 10 21:42:58 2026 +0100
Commit:     Andreas Rheinhardt <[email protected]>
CommitDate: Sat Mar 14 19:31:44 2026 +0100

    avcodec/apv_decode: Remove always-false branches
    
    Signed-off-by: Andreas Rheinhardt <[email protected]>
---
 libavcodec/apv_decode.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libavcodec/apv_decode.c b/libavcodec/apv_decode.c
index 3d774d3378..ab5a6b098a 100644
--- a/libavcodec/apv_decode.c
+++ b/libavcodec/apv_decode.c
@@ -19,6 +19,7 @@
 #include <stdatomic.h>
 
 #include "libavutil/attributes.h"
+#include "libavutil/avassert.h"
 #include "libavutil/mastering_display_metadata.h"
 #include "libavutil/mem_internal.h"
 #include "libavutil/pixdesc.h"
@@ -82,7 +83,8 @@ static int apv_decode_check_format(AVCodecContext *avctx,
     avctx->level   = header->frame_info.level_idc;
 
     bit_depth = header->frame_info.bit_depth_minus8 + 8;
-    if (bit_depth < 8 || bit_depth > 16 || bit_depth % 2) {
+    av_assert1(bit_depth >= 10 && bit_depth <= 16); // checked by CBS
+    if (bit_depth % 2) {
         avpriv_request_sample(avctx, "Bit depth %d", bit_depth);
         return AVERROR_PATCHWELCOME;
     }

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to