]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/hevcdec: make ff_hevc_frame_nb_refs take a const pointer
authorTimo Rothenpieler <timo@rothenpieler.org>
Thu, 10 May 2018 10:22:34 +0000 (12:22 +0200)
committerTimo Rothenpieler <timo@rothenpieler.org>
Thu, 10 May 2018 16:41:56 +0000 (18:41 +0200)
libavcodec/hevc_refs.c
libavcodec/hevcdec.h

index 68c730edcce1dce7824cede9da95c0f0205837db..7cf3a5572579056eb40738841f4fab7bf202ba83 100644 (file)
@@ -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++)
index b311edc8aeef358aa96a34a9accaf466504200a9..f0f588f2b826a7859561820a63731ac3142479fd 100644 (file)
@@ -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);