mirror of https://git.ffmpeg.org/ffmpeg.git
lavc/hevcdec: drop an always-zero variable
This commit is contained in:
parent
8c8072c29c
commit
8eb134f4f9
|
@ -984,13 +984,9 @@ static int hls_slice_header(HEVCContext *s, GetBitContext *gb)
|
||||||
unsigned val = get_bits_long(gb, offset_len);
|
unsigned val = get_bits_long(gb, offset_len);
|
||||||
sh->entry_point_offset[i] = val + 1; // +1; // +1 to get the size
|
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)) {
|
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
|
|
||||||
s->threads_number = 1;
|
s->threads_number = 1;
|
||||||
} else
|
}
|
||||||
s->enable_parallel_tiles = 0;
|
|
||||||
} else
|
|
||||||
s->enable_parallel_tiles = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pps->slice_header_extension_present_flag) {
|
if (pps->slice_header_extension_present_flag) {
|
||||||
|
@ -3697,7 +3693,6 @@ static av_cold int hevc_decode_init(AVCodecContext *avctx)
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
s->enable_parallel_tiles = 0;
|
|
||||||
s->sei.picture_timing.picture_struct = 0;
|
s->sei.picture_timing.picture_struct = 0;
|
||||||
s->eos = 1;
|
s->eos = 1;
|
||||||
|
|
||||||
|
|
|
@ -532,7 +532,6 @@ typedef struct HEVCContext {
|
||||||
/** The target for the common_cabac_state of the local contexts. */
|
/** The target for the common_cabac_state of the local contexts. */
|
||||||
HEVCCABACState cabac;
|
HEVCCABACState cabac;
|
||||||
|
|
||||||
int enable_parallel_tiles;
|
|
||||||
atomic_int wpp_err;
|
atomic_int wpp_err;
|
||||||
|
|
||||||
const uint8_t *data;
|
const uint8_t *data;
|
||||||
|
|
Loading…
Reference in New Issue