aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/hevcdec.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2016-08-21 18:02:02 +0200
committerAnton Khirnov <anton@khirnov.net>2016-10-16 20:26:47 +0200
commitf6e2f8a9ffda2247bffba991450990d075ea68e3 (patch)
tree9493109957348fdc0069541e7c1762db61d503a3 /libavcodec/hevcdec.c
parent150c896a9e46b23b97debb0a5f66fbaeaa32f153 (diff)
downloadffmpeg-f6e2f8a9ffda2247bffba991450990d075ea68e3.tar.gz
hevcdec: move parameter set parsing into a separate header
This code is independent from the decoder, so it makes more sense for it to to have its own header.
Diffstat (limited to 'libavcodec/hevcdec.c')
-rw-r--r--libavcodec/hevcdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c
index 93eb95a265..72fdd22c5e 100644
--- a/libavcodec/hevcdec.c
+++ b/libavcodec/hevcdec.c
@@ -628,7 +628,7 @@ static int hls_slice_header(HEVCContext *s)
if (sh->slice_type == B_SLICE)
sh->nb_refs[L1] = get_ue_golomb_long(gb) + 1;
}
- if (sh->nb_refs[L0] > MAX_REFS || sh->nb_refs[L1] > MAX_REFS) {
+ if (sh->nb_refs[L0] > HEVC_MAX_REFS || sh->nb_refs[L1] > HEVC_MAX_REFS) {
av_log(s->avctx, AV_LOG_ERROR, "Too many refs: %d/%d.\n",
sh->nb_refs[L0], sh->nb_refs[L1]);
return AVERROR_INVALIDDATA;