aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-05-15 22:12:08 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-05-21 20:43:39 +0200
commit1bf416dfc39f0768904d081cf82856d5dd2f2803 (patch)
tree220208225184145751b5b9a247730861c1553941
parentd3c9d87eea960dc62d9714371f52be25b9e941ac (diff)
downloadffmpeg-1bf416dfc39f0768904d081cf82856d5dd2f2803.tar.gz
avcodec/hevc: Fix typo in num_entry_point_offsets check
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 3051e7fa712dfe2136f19b7157211453895f2a3c) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/hevc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c
index 9b563cdf62..cfd420b046 100644
--- a/libavcodec/hevc.c
+++ b/libavcodec/hevc.c
@@ -676,7 +676,7 @@ static int hls_slice_header(HEVCContext *s)
if (s->pps->tiles_enabled_flag || s->pps->entropy_coding_sync_enabled_flag) {
unsigned num_entry_point_offsets = get_ue_golomb_long(gb);
// 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);
return AVERROR_INVALIDDATA;
}