diff options
author | Anton Khirnov <anton@khirnov.net> | 2024-06-01 10:04:44 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-06-11 17:39:34 +0200 |
commit | a82f2b092430db8284bf91147f718d09f3ee592c (patch) | |
tree | deb46aee6fc5f4ec864f27b082b1d206d0177c67 | |
parent | 04075567163290eb8b85d106b3e53bdc13d8515b (diff) | |
download | ffmpeg-a82f2b092430db8284bf91147f718d09f3ee592c.tar.gz |
lavc/hevcdec: simplify condition
-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 d317c1471a..43cbc45062 100644 --- a/libavcodec/hevc/hevcdec.c +++ b/libavcodec/hevc/hevcdec.c @@ -3115,7 +3115,7 @@ static int decode_nal_unit(HEVCContext *s, const H2645NAL *nal) ctb_addr_ts = hls_slice_data_wpp(s, nal); else ctb_addr_ts = hls_decode_entry(s, &gb); - if (ctb_addr_ts >= (s->ps.sps->ctb_width * s->ps.sps->ctb_height)) { + if (ctb_addr_ts >= s->cur_frame->ctb_count) { ret = hevc_frame_end(s); if (ret < 0) goto fail; |