You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-30 22:24:04 +02:00
avcodec/hevc: Fix typo in num_entry_point_offsets check
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@ -709,7 +709,7 @@ static int hls_slice_header(HEVCContext *s)
|
|||||||
if (s->pps->tiles_enabled_flag || s->pps->entropy_coding_sync_enabled_flag) {
|
if (s->pps->tiles_enabled_flag || s->pps->entropy_coding_sync_enabled_flag) {
|
||||||
unsigned num_entry_point_offsets = get_ue_golomb_long(gb);
|
unsigned num_entry_point_offsets = get_ue_golomb_long(gb);
|
||||||
// It would be possible to bound this tighter but this here is simpler
|
// It would be possible to bound this tighter but this here is simpler
|
||||||
if (sh->num_entry_point_offsets > get_bits_left(gb)) {
|
if (num_entry_point_offsets > get_bits_left(gb)) {
|
||||||
av_log(s->avctx, AV_LOG_ERROR, "num_entry_point_offsets %d is invalid\n", num_entry_point_offsets);
|
av_log(s->avctx, AV_LOG_ERROR, "num_entry_point_offsets %d is invalid\n", num_entry_point_offsets);
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user