The branch, master has been updated
       via  b8856c5fc51a486836983eaffc661e14b57ef49e (commit)
      from  990edfee5b9ca65ef71feddb595dcda9f195120e (commit)


- Log -----------------------------------------------------------------
commit b8856c5fc51a486836983eaffc661e14b57ef49e
Author:     Zhao Zhili <quinkbl...@foxmail.com>
AuthorDate: Wed Aug 20 09:46:47 2025 +0100
Commit:     James Almer <jamr...@gmail.com>
CommitDate: Wed Aug 20 11:52:32 2025 +0000

    avcodec/hevc: Fix invalid null pointer check
    
    c5287178b4d added a null pointer check, but checked the wrong
    variable. &s->cur_frame->f->data[c_idx] cannot be null.

diff --git a/libavcodec/hevc/hevcdec.c b/libavcodec/hevc/hevcdec.c
index f44bda8a92..d3e5e58cfc 100644
--- a/libavcodec/hevc/hevcdec.c
+++ b/libavcodec/hevc/hevcdec.c
@@ -2096,7 +2096,7 @@ static void hls_prediction_unit(HEVCLocalContext *lc,
                                 int log2_cb_size, int partIdx, int idx)
 {
 #define POS(c_idx, x, y)                                                       
   \
-    &s->cur_frame->f->data[c_idx] ?                                            
   \
+    s->cur_frame->f->data[c_idx] ?                                             
   \
     &s->cur_frame->f->data[c_idx][((y) >> sps->vshift[c_idx]) * 
linesize[c_idx] + \
                            (((x) >> sps->hshift[c_idx]) << sps->pixel_shift)] 
: NULL
     const HEVCContext *const s = lc->parent;

-----------------------------------------------------------------------

Summary of changes:
 libavcodec/hevc/hevcdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to