diff dxva2_h264.c @ 11735:9434d9083b94 libavcodec

Reindent after last commit on dxva2 h264 AVHWAccel.
author fenrir
date Fri, 14 May 2010 23:09:08 +0000
parents f85c4e46272e
children
line wrap: on
line diff
--- a/dxva2_h264.c	Fri May 14 23:08:23 2010 +0000
+++ b/dxva2_h264.c	Fri May 14 23:09:08 2010 +0000
@@ -57,14 +57,14 @@
     pp->UsedForReferenceFlags  = 0;
     pp->NonExistingFrameFlags  = 0;
     for (i = 0, j = 0; i < FF_ARRAY_ELEMS(pp->RefFrameList); i++) {
-            const Picture *r;
-            if (j < h->short_ref_count) {
-                r = h->short_ref[j++];
-            } else {
-                r = NULL;
-                while (!r && j < h->short_ref_count + 16)
-                    r = h->long_ref[j++ - h->short_ref_count];
-            }
+        const Picture *r;
+        if (j < h->short_ref_count) {
+            r = h->short_ref[j++];
+        } else {
+            r = NULL;
+            while (!r && j < h->short_ref_count + 16)
+                r = h->long_ref[j++ - h->short_ref_count];
+        }
         if (r) {
             fill_picture_entry(&pp->RefFrameList[i],
                                ff_dxva2_get_surface_index(ctx, r),