[FFmpeg-cvslog] avcodec/hevcdec: make ff_hevc_frame_nb_refs take a const pointer
Timo Rothenpieler
git at videolan.org
Thu May 10 19:56:45 EEST 2018
ffmpeg | branch: release/4.0 | Timo Rothenpieler <timo at rothenpieler.org> | Thu May 10 12:22:34 2018 +0200| [61b673b1f101ed7fcf5b3e564e296210f44e04d1] | committer: Timo Rothenpieler
avcodec/hevcdec: make ff_hevc_frame_nb_refs take a const pointer
(cherry picked from commit 46c1ee19171c4704ad7dec65b1c716a727238486)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=61b673b1f101ed7fcf5b3e564e296210f44e04d1
---
libavcodec/hevc_refs.c | 4 ++--
libavcodec/hevcdec.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavcodec/hevc_refs.c b/libavcodec/hevc_refs.c
index ac462d350b..e159a23a4e 100644
--- a/libavcodec/hevc_refs.c
+++ b/libavcodec/hevc_refs.c
@@ -511,12 +511,12 @@ fail:
return ret;
}
-int ff_hevc_frame_nb_refs(HEVCContext *s)
+int ff_hevc_frame_nb_refs(const HEVCContext *s)
{
int ret = 0;
int i;
const ShortTermRPS *rps = s->sh.short_term_rps;
- LongTermRPS *long_rps = &s->sh.long_term_rps;
+ const LongTermRPS *long_rps = &s->sh.long_term_rps;
if (rps) {
for (i = 0; i < rps->num_negative_pics; i++)
diff --git a/libavcodec/hevcdec.h b/libavcodec/hevcdec.h
index b311edc8ae..f0f588f2b8 100644
--- a/libavcodec/hevcdec.h
+++ b/libavcodec/hevcdec.h
@@ -544,7 +544,7 @@ int ff_hevc_res_scale_sign_flag(HEVCContext *s, int idx);
/**
* Get the number of candidate references for the current frame.
*/
-int ff_hevc_frame_nb_refs(HEVCContext *s);
+int ff_hevc_frame_nb_refs(const HEVCContext *s);
int ff_hevc_set_new_ref(HEVCContext *s, AVFrame **frame, int poc);
More information about the ffmpeg-cvslog
mailing list