History

lavc/hevcdec: drop a useless execute() call with 1 job

Anton Khirnov committed 2 years ago

Commit 72bdbce1 parent f0aece91 file · +2 −10Browse files

Unified · Split

libavcodec/hevcdec.c+2−10
@@ -2526,9 +2526,8 @@ static void hls_decode_neighbour(HEVCLocalContext *lc, int x_ctb, int y_ctb, · 2525 unmodified lines
25262526 lc->ctb_up_left_flag = ((x_ctb > 0) && (y_ctb > 0) && (ctb_addr_in_slice-1 >= s->ps.sps->ctb_width) && (s->ps.pps->tile_id[ctb_addr_ts] == s->ps.pps->tile_id[s->ps.pps->ctb_addr_rs_to_ts[ctb_addr_rs-1 - s->ps.sps->ctb_width]]));
25272527 }
25282528
2529−static int hls_decode_entry(AVCodecContext *avctxt, void *arg)
2529+static int hls_decode_entry(HEVCContext *s)
25302530 {
2531− HEVCContext *s = avctxt->priv_data;
25322531 HEVCLocalContext *const lc = s->HEVClc;
25332532 int ctb_size = 1 << s->ps.sps->log2_ctb_size;
25342533 int more_data = 1;
@@ -2588,13 +2587,6 @@ static int hls_decode_entry(AVCodecContext *avctxt, void *arg) · 53 unmodified lines
25882587 return ctb_addr_ts;
25892588 }
25902589
2591−static int hls_slice_data(HEVCContext *s)
2592−{
2593− int ret = 0;
2594−
2595− s->avctx->execute(s->avctx, hls_decode_entry, NULL, &ret , 1, 0);
2596− return ret;
2597−}
25982590 static int hls_decode_entry_wpp(AVCodecContext *avctxt, void *hevc_lclist,
25992591 int job, int self_id)
26002592 {
@@ -3133,7 +3125,7 @@ static int decode_nal_unit(HEVCContext *s, const H2645NAL *nal) · 532 unmodified lines
31333125 if (s->threads_number > 1 && s->sh.num_entry_point_offsets > 0)
31343126 ctb_addr_ts = hls_slice_data_wpp(s, nal);
31353127 else
3136− ctb_addr_ts = hls_slice_data(s);
3128+ ctb_addr_ts = hls_decode_entry(s);
31373129 if (ctb_addr_ts >= (s->ps.sps->ctb_width * s->ps.sps->ctb_height)) {
31383130 ret = hevc_frame_end(s);
31393131 if (ret < 0)

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