[FFmpeg-cvslog] vaapi_encode_vp9: Fix whitespace after previous patch

Mark Thompson git at videolan.org
Tue Feb 26 01:42:01 EET 2019


ffmpeg | branch: master | Mark Thompson <sw at jkqxz.net> | Sun Feb 10 19:47:00 2019 +0000| [c4c2c4df76e15cf3e4c7a0b7500d3c0f8dade271] | committer: Mark Thompson

vaapi_encode_vp9: Fix whitespace after previous patch

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

 libavcodec/vaapi_encode_vp9.c | 30 +++++++++++++++---------------
 1 file changed, 15 insertions(+), 15 deletions(-)

diff --git a/libavcodec/vaapi_encode_vp9.c b/libavcodec/vaapi_encode_vp9.c
index 8fb399f115..f89fd0d07a 100644
--- a/libavcodec/vaapi_encode_vp9.c
+++ b/libavcodec/vaapi_encode_vp9.c
@@ -182,21 +182,21 @@ static av_cold int vaapi_encode_vp9_configure(AVCodecContext *avctx)
     VAAPIEncodeVP9Context *priv = avctx->priv_data;
 
     if (ctx->rc_mode->quality) {
-    priv->q_idx_p = av_clip(ctx->rc_quality, 0, VP9_MAX_QUANT);
-    if (avctx->i_quant_factor > 0.0)
-        priv->q_idx_idr = av_clip((priv->q_idx_p *
-                                   avctx->i_quant_factor +
-                                   avctx->i_quant_offset) + 0.5,
-                                  0, VP9_MAX_QUANT);
-    else
-        priv->q_idx_idr = priv->q_idx_p;
-    if (avctx->b_quant_factor > 0.0)
-        priv->q_idx_b = av_clip((priv->q_idx_p *
-                                 avctx->b_quant_factor +
-                                 avctx->b_quant_offset) + 0.5,
-                                0, VP9_MAX_QUANT);
-    else
-        priv->q_idx_b = priv->q_idx_p;
+        priv->q_idx_p = av_clip(ctx->rc_quality, 0, VP9_MAX_QUANT);
+        if (avctx->i_quant_factor > 0.0)
+            priv->q_idx_idr =
+                av_clip((avctx->i_quant_factor * priv->q_idx_p  +
+                         avctx->i_quant_offset) + 0.5,
+                        0, VP9_MAX_QUANT);
+        else
+            priv->q_idx_idr = priv->q_idx_p;
+        if (avctx->b_quant_factor > 0.0)
+            priv->q_idx_b =
+                av_clip((avctx->b_quant_factor * priv->q_idx_p  +
+                         avctx->b_quant_offset) + 0.5,
+                        0, VP9_MAX_QUANT);
+        else
+            priv->q_idx_b = priv->q_idx_p;
     } else {
         // Arbitrary value.
         priv->q_idx_idr = priv->q_idx_p = priv->q_idx_b = 100;



More information about the ffmpeg-cvslog mailing list