summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2019-12-28 17:42:55 +0100
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2019-12-29 17:58:36 +0100
commitb4d73433c39e2fadea4a4a43e5d8ce7278832f19 (patch)
treea2fa60ace8bc9c19b749844f8ed7b2429f96eb72
parent3398c64036dea3781bba843abee998acc80a6c32 (diff)
libs: encoder: vp9: fix code style
-rw-r--r--gst-libs/gst/vaapi/gstvaapiencoder_vp9.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapiencoder_vp9.c b/gst-libs/gst/vaapi/gstvaapiencoder_vp9.c
index ff679ce3..0c66a295 100644
--- a/gst-libs/gst/vaapi/gstvaapiencoder_vp9.c
+++ b/gst-libs/gst/vaapi/gstvaapiencoder_vp9.c
@@ -428,8 +428,8 @@ update_ref_list (GstVaapiEncoderVP9 * encoder, GstVaapiEncPicture * picture,
gst_vaapi_surface_proxy_unref (ref);
break;
case GST_VAAPI_ENCODER_VP9_REF_PIC_MODE_1:
- gst_vaapi_surface_proxy_replace (&encoder->ref_list[encoder->
- ref_list_idx], ref);
+ i = encoder->ref_list_idx;
+ gst_vaapi_surface_proxy_replace (&encoder->ref_list[i], ref);
gst_vaapi_surface_proxy_unref (ref);
encoder->ref_list_idx = (encoder->ref_list_idx + 1) % GST_VP9_REF_FRAMES;
break;