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

Git pushed a commit to branch master
in repository ffmpeg.

commit 312bfd512d73929bc6b9d2fc51191694e7dba409
Author:     Andreas Rheinhardt <[email protected]>
AuthorDate: Wed Apr 15 15:06:00 2026 +0200
Commit:     James Almer <[email protected]>
CommitDate: Thu Apr 16 19:27:03 2026 +0000

    avcodec/decode: Remove always-true checks
    
    dc->lcevc.ctx is only != NULL for video.
    
    Signed-off-by: Andreas Rheinhardt <[email protected]>
---
 libavcodec/decode.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/decode.c b/libavcodec/decode.c
index b7392cae23..c1f3d6d6d9 100644
--- a/libavcodec/decode.c
+++ b/libavcodec/decode.c
@@ -1626,7 +1626,7 @@ int ff_decode_frame_props(AVCodecContext *avctx, AVFrame 
*frame)
     AVCodecInternal    *avci = avctx->internal;
     DecodeContext        *dc = decode_ctx(avci);
 
-    dc->lcevc.frame = dc->lcevc.ctx && avctx->codec_type == AVMEDIA_TYPE_VIDEO 
&&
+    dc->lcevc.frame = dc->lcevc.ctx &&
                       av_frame_get_side_data(frame, AV_FRAME_DATA_LCEVC);
 
     if (dc->lcevc.frame) {
@@ -1700,7 +1700,7 @@ int ff_attach_decode_data(AVCodecContext *avctx, AVFrame 
*frame)
     DecodeContext        *dc = decode_ctx(avci);
 
     if (!dc->lcevc.frame) {
-        dc->lcevc.frame = dc->lcevc.ctx && avctx->codec_type == 
AVMEDIA_TYPE_VIDEO &&
+        dc->lcevc.frame = dc->lcevc.ctx &&
                           av_frame_get_side_data(frame, AV_FRAME_DATA_LCEVC);
 
         if (dc->lcevc.frame) {

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

Reply via email to