History

lavc/hevcdec: remove a duplicate variable

In hls_decode_entry_wpp(), self_id is always identical to thread.

Anton Khirnov committed 2 years ago

Commit 21ef80f1 parent b88c88f1 file · +2 −3Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/hevc/hevcdec.c+2−3
@@ -2587,9 +2587,9 @@ static int hls_decode_entry(HEVCContext *s, GetBitContext *gb) · 2586 unmodified lines
25872587 }
25882588
25892589 static int hls_decode_entry_wpp(AVCodecContext *avctx, void *hevc_lclist,
2590− int job, int self_id)
2590+ int job, int thread)
25912591 {
2592− HEVCLocalContext *lc = &((HEVCLocalContext*)hevc_lclist)[self_id];
2592+ HEVCLocalContext *lc = &((HEVCLocalContext*)hevc_lclist)[thread];
25932593 const HEVCContext *const s = lc->parent;
25942594 const HEVCLayerContext *const l = &s->layers[s->cur_layer];
25952595 const HEVCPPS *const pps = s->pps;
@@ -2599,7 +2599,6 @@ static int hls_decode_entry_wpp(AVCodecContext *avctx, void *hevc_lclist, · 3 unmodified lines
25992599 int ctb_row = job;
26002600 int ctb_addr_rs = s->sh.slice_ctb_addr_rs + ctb_row * ((sps->width + ctb_size - 1) >> sps->log2_ctb_size);
26012601 int ctb_addr_ts = pps->ctb_addr_rs_to_ts[ctb_addr_rs];
2602− int thread = ctb_row % avctx->thread_count;
26032602
26042603 const uint8_t *data = s->data + s->sh.offset[ctb_row];
26052604 const size_t data_size = s->sh.size[ctb_row];

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t