[PATCH] Reindent the content of one if(){} in ff_dxva2_common_end_frame.

Laurent Aimar fenrir
Fri Jan 22 22:22:58 CET 2010


---
 libavcodec/dxva2_h264.c |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/libavcodec/dxva2_h264.c b/libavcodec/dxva2_h264.c
index 827ab68..00caa76 100644
--- a/libavcodec/dxva2_h264.c
+++ b/libavcodec/dxva2_h264.c
@@ -495,15 +495,15 @@ static int ff_dxva2_common_end_frame(AVCodecContext *avctx, MpegEncContext *s,
     buffer_count++;
 
     if (qm_size > 0) {
-    result = commit_buffer(avctx, ctx, &buffer[buffer_count],
-                           DXVA2_InverseQuantizationMatrixBufferType,
-                           qm, qm_size, 0);
-    if (result) {
-        av_log(avctx, AV_LOG_ERROR,
-               "Failed to add inverse quantization matrix buffer\n");
-        goto end;
-    }
-    buffer_count++;
+        result = commit_buffer(avctx, ctx, &buffer[buffer_count],
+                               DXVA2_InverseQuantizationMatrixBufferType,
+                               qm, qm_size, 0);
+        if (result) {
+            av_log(avctx, AV_LOG_ERROR,
+                   "Failed to add inverse quantization matrix buffer\n");
+            goto end;
+        }
+        buffer_count++;
     }
 
     result = commit_bs_si(avctx,
-- 
1.5.6.5


--YZ5djTAD1cGYuMQK
Content-Type: text/x-diff; charset=iso-8859-1
Content-Disposition: attachment; filename="0003-Added-ff_dxva2_-prefix-to-get_surface-_index-and-co.patch"




More information about the ffmpeg-devel mailing list