diff options
author | Timo Rothenpieler <timo@rothenpieler.org> | 2018-05-10 13:22:34 +0300 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2018-05-10 19:41:56 +0300 |
commit | 46c1ee19171c4704ad7dec65b1c716a727238486 (patch) | |
tree | 29bfbad151a8a74115cd2aeaf6772b9bc6bb5423 /libavcodec/hevc_refs.c | |
parent | 974eb4aaaa7d96a996c61030fca4095c3c2c6284 (diff) |
avcodec/hevcdec: make ff_hevc_frame_nb_refs take a const pointer
Diffstat (limited to 'libavcodec/hevc_refs.c')
-rw-r--r-- | libavcodec/hevc_refs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/hevc_refs.c b/libavcodec/hevc_refs.c index 68c730edcc..7cf3a55725 100644 --- a/libavcodec/hevc_refs.c +++ b/libavcodec/hevc_refs.c @@ -508,12 +508,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++) |