diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-05-15 22:12:08 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-06-17 21:50:08 +0200 |
commit | 9cee1c4ac7cd39b2e44479060306510ca925faab (patch) | |
tree | e4f6590dbbb579d29d1069ce7765eb71f9545854 | |
parent | ed6d7696db316355694c1142e478b316d2158705 (diff) | |
download | ffmpeg-9cee1c4ac7cd39b2e44479060306510ca925faab.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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c index 57bda4c427..663cd944ef 100644 --- a/libavcodec/hevc.c +++ b/libavcodec/hevc.c @@ -646,7 +646,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; } |