[FFmpeg-cvslog] avcodec/cbs_av1: use a more appropiate AV1ReferenceFrameState pointer variable name

James Almer git at videolan.org
Sun Sep 6 04:38:14 EEST 2020


ffmpeg | branch: release/4.3 | James Almer <jamrial at gmail.com> | Tue Aug 25 14:53:42 2020 -0300| [f94134b22a3dbc939777089f58dd6d73f0d40038] | committer: James Almer

avcodec/cbs_av1: use a more appropiate AV1ReferenceFrameState pointer variable name

frame is more commonly used for AV1RawFrameHeader and AV1RawFrame.

Signed-off-by: James Almer <jamrial at gmail.com>
(cherry picked from commit 97819f15a8b776e3450cc10217f646da40013bf1)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f94134b22a3dbc939777089f58dd6d73f0d40038
---

 libavcodec/cbs_av1_syntax_template.c | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/libavcodec/cbs_av1_syntax_template.c b/libavcodec/cbs_av1_syntax_template.c
index 8d93f75ada..d1ba1e737c 100644
--- a/libavcodec/cbs_av1_syntax_template.c
+++ b/libavcodec/cbs_av1_syntax_template.c
@@ -1261,10 +1261,10 @@ static int FUNC(uncompressed_header)(CodedBitstreamContext *ctx, RWContext *rw,
         flag(show_existing_frame);
 
         if (current->show_existing_frame) {
-            AV1ReferenceFrameState *frame;
+            AV1ReferenceFrameState *ref;
 
             fb(3, frame_to_show_map_idx);
-            frame = &priv->ref[current->frame_to_show_map_idx];
+            ref = &priv->ref[current->frame_to_show_map_idx];
 
             if (seq->decoder_model_info_present_flag &&
                 !seq->timing_info.equal_picture_interval) {
@@ -1275,19 +1275,19 @@ static int FUNC(uncompressed_header)(CodedBitstreamContext *ctx, RWContext *rw,
             if (seq->frame_id_numbers_present_flag)
                 fb(id_len, display_frame_id);
 
-            infer(frame_type, frame->frame_type);
+            infer(frame_type, ref->frame_type);
             if (current->frame_type == AV1_FRAME_KEY) {
                 infer(refresh_frame_flags, all_frames);
 
                 // Section 7.21
-                infer(current_frame_id, frame->frame_id);
-                priv->upscaled_width  = frame->upscaled_width;
-                priv->frame_width     = frame->frame_width;
-                priv->frame_height    = frame->frame_height;
-                priv->render_width    = frame->render_width;
-                priv->render_height   = frame->render_height;
-                priv->bit_depth       = frame->bit_depth;
-                priv->order_hint      = frame->order_hint;
+                infer(current_frame_id, ref->frame_id);
+                priv->upscaled_width  = ref->upscaled_width;
+                priv->frame_width     = ref->frame_width;
+                priv->frame_height    = ref->frame_height;
+                priv->render_width    = ref->render_width;
+                priv->render_height   = ref->render_height;
+                priv->bit_depth       = ref->bit_depth;
+                priv->order_hint      = ref->order_hint;
             } else
                 infer(refresh_frame_flags, 0);
 



More information about the ffmpeg-cvslog mailing list