diff options
author | Zhao Zhili <zhilizhao@tencent.com> | 2025-08-20 09:46:47 +0100 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2025-08-20 11:52:32 +0000 |
commit | b8856c5fc51a486836983eaffc661e14b57ef49e (patch) | |
tree | f9c1188d191f26632ff7a7fafa8e7d522588fc96 | |
parent | 990edfee5b9ca65ef71feddb595dcda9f195120e (diff) | |
download | ffmpeg-b8856c5fc51a486836983eaffc661e14b57ef49e.tar.gz |
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.
-rw-r--r-- | libavcodec/hevc/hevcdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |