diff options
author | James Almer <jamrial@gmail.com> | 2017-03-23 15:41:09 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-03-23 15:53:00 -0300 |
commit | 4a5810b6592db74b9c345ea74c4f08f5f490874c (patch) | |
tree | 1cafa314ac13d3be87eb3348edc5ab442a57d2ff /libavcodec/hevc_refs.c | |
parent | b29c8c995f17156204eb074e12b781a94b02c2a9 (diff) | |
parent | f6e2f8a9ffda2247bffba991450990d075ea68e3 (diff) | |
download | ffmpeg-4a5810b6592db74b9c345ea74c4f08f5f490874c.tar.gz |
Merge commit 'f6e2f8a9ffda2247bffba991450990d075ea68e3'
* commit 'f6e2f8a9ffda2247bffba991450990d075ea68e3':
hevcdec: move parameter set parsing into a separate header
Merged-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/hevc_refs.c')
-rw-r--r-- | libavcodec/hevc_refs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hevc_refs.c b/libavcodec/hevc_refs.c index db1ac2bf90..935e388653 100644 --- a/libavcodec/hevc_refs.c +++ b/libavcodec/hevc_refs.c @@ -329,7 +329,7 @@ int ff_hevc_slice_rpl(HEVCContext *s) while (rpl_tmp.nb_refs < sh->nb_refs[list_idx]) { for (i = 0; i < FF_ARRAY_ELEMS(cand_lists); i++) { RefPicList *rps = &s->rps[cand_lists[i]]; - for (j = 0; j < rps->nb_refs && rpl_tmp.nb_refs < MAX_REFS; j++) { + for (j = 0; j < rps->nb_refs && rpl_tmp.nb_refs < HEVC_MAX_REFS; j++) { rpl_tmp.list[rpl_tmp.nb_refs] = rps->list[j]; rpl_tmp.ref[rpl_tmp.nb_refs] = rps->ref[j]; rpl_tmp.isLongTerm[rpl_tmp.nb_refs] = i == 2; |