diff options
author | Anton Khirnov <anton@khirnov.net> | 2024-06-01 12:43:42 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-06-11 17:39:35 +0200 |
commit | 8eb134f4f9449fef6f1a992361e46a7f321f3b1d (patch) | |
tree | 97f5f548915c181c51fd6a4e3b2e8961351d2f53 | |
parent | 8c8072c29c9712615c571a2de733cf49fa5a27ed (diff) | |
download | ffmpeg-8eb134f4f9449fef6f1a992361e46a7f321f3b1d.tar.gz |
lavc/hevcdec: drop an always-zero variable
-rw-r--r-- | libavcodec/hevc/hevcdec.c | 9 | ||||
-rw-r--r-- | libavcodec/hevc/hevcdec.h | 1 |
2 files changed, 2 insertions, 8 deletions
diff --git a/libavcodec/hevc/hevcdec.c b/libavcodec/hevc/hevcdec.c index 6dda923df5..d599373c9d 100644 --- a/libavcodec/hevc/hevcdec.c +++ b/libavcodec/hevc/hevcdec.c @@ -984,13 +984,9 @@ static int hls_slice_header(HEVCContext *s, GetBitContext *gb) unsigned val = get_bits_long(gb, offset_len); sh->entry_point_offset[i] = val + 1; // +1; // +1 to get the size } - if (s->threads_number > 1 && (pps->num_tile_rows > 1 || pps->num_tile_columns > 1)) { - s->enable_parallel_tiles = 0; // TODO: you can enable tiles in parallel here + if (s->threads_number > 1 && (pps->num_tile_rows > 1 || pps->num_tile_columns > 1)) s->threads_number = 1; - } else - s->enable_parallel_tiles = 0; - } else - s->enable_parallel_tiles = 0; + } } if (pps->slice_header_extension_present_flag) { @@ -3697,7 +3693,6 @@ static av_cold int hevc_decode_init(AVCodecContext *avctx) if (ret < 0) return ret; - s->enable_parallel_tiles = 0; s->sei.picture_timing.picture_struct = 0; s->eos = 1; diff --git a/libavcodec/hevc/hevcdec.h b/libavcodec/hevc/hevcdec.h index 3b7442e5c1..c58ce05639 100644 --- a/libavcodec/hevc/hevcdec.h +++ b/libavcodec/hevc/hevcdec.h @@ -532,7 +532,6 @@ typedef struct HEVCContext { /** The target for the common_cabac_state of the local contexts. */ HEVCCABACState cabac; - int enable_parallel_tiles; atomic_int wpp_err; const uint8_t *data; |