aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2024-09-04 10:49:54 +0200
committerAnton Khirnov <anton@khirnov.net>2024-09-13 12:10:11 +0200
commit21ef80f3d9a5d53e93bbcacfdf09c02e5a77102b (patch)
tree2b3cf3d91913c6f41f86f7fb290d3d0ac50ab313
parentb88c88f92086110b8a4f1917cb20bc68e22705d2 (diff)
downloadffmpeg-21ef80f3d9a5d53e93bbcacfdf09c02e5a77102b.tar.gz
lavc/hevcdec: remove a duplicate variable
In hls_decode_entry_wpp(), self_id is always identical to thread.
-rw-r--r--libavcodec/hevc/hevcdec.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/hevc/hevcdec.c b/libavcodec/hevc/hevcdec.c
index d67730418b..dc82f05a91 100644
--- a/libavcodec/hevc/hevcdec.c
+++ b/libavcodec/hevc/hevcdec.c
@@ -2587,9 +2587,9 @@ static int hls_decode_entry(HEVCContext *s, GetBitContext *gb)
}
static int hls_decode_entry_wpp(AVCodecContext *avctx, void *hevc_lclist,
- int job, int self_id)
+ int job, int thread)
{
- HEVCLocalContext *lc = &((HEVCLocalContext*)hevc_lclist)[self_id];
+ HEVCLocalContext *lc = &((HEVCLocalContext*)hevc_lclist)[thread];
const HEVCContext *const s = lc->parent;
const HEVCLayerContext *const l = &s->layers[s->cur_layer];
const HEVCPPS *const pps = s->pps;
@@ -2599,7 +2599,6 @@ static int hls_decode_entry_wpp(AVCodecContext *avctx, void *hevc_lclist,
int ctb_row = job;
int ctb_addr_rs = s->sh.slice_ctb_addr_rs + ctb_row * ((sps->width + ctb_size - 1) >> sps->log2_ctb_size);
int ctb_addr_ts = pps->ctb_addr_rs_to_ts[ctb_addr_rs];
- int thread = ctb_row % avctx->thread_count;
const uint8_t *data = s->data + s->sh.offset[ctb_row];
const size_t data_size = s->sh.size[ctb_row];