[FFmpeg-cvslog] [ffmpeg] branch master updated. b8856c5fc5 avcodec/hevc: Fix invalid null pointer check

ffmpeg-git at ffmpeg.org ffmpeg-git at ffmpeg.org
Wed Aug 20 14:53:17 EEST 2025


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


- Log -----------------------------------------------------------------
commit b8856c5fc51a486836983eaffc661e14b57ef49e
Author:     Zhao Zhili <quinkblack at foxmail.com>
AuthorDate: Wed Aug 20 09:46:47 2025 +0100
Commit:     James Almer <jamrial at 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
-- 



More information about the ffmpeg-cvslog mailing list