[FFmpeg-cvslog] avcodec/h264dec: Reindent after the previous commit

arch1t3cht git at videolan.org
Tue Apr 16 18:48:23 EEST 2024


ffmpeg | branch: master | arch1t3cht <arch1t3cht at gmail.com> | Thu Mar 28 02:56:39 2024 +0100| [e9e1932c1ca85c8ce29a89f3fbda77c7df38e8f0] | committer: Derek Buitenhuis

avcodec/h264dec: Reindent after the previous commit

Signed-off-by: arch1t3cht <arch1t3cht at gmail.com>
Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>

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

 libavcodec/h264dec.c | 46 +++++++++++++++++++++++-----------------------
 1 file changed, 23 insertions(+), 23 deletions(-)

diff --git a/libavcodec/h264dec.c b/libavcodec/h264dec.c
index 76447e5206..0b111b5b99 100644
--- a/libavcodec/h264dec.c
+++ b/libavcodec/h264dec.c
@@ -1000,32 +1000,32 @@ static int send_next_delayed_frame(H264Context *h, AVFrame *dst_frame,
     h->first_field = 0;
 
     while (h->delayed_pic[0]) {
-    out = h->delayed_pic[0];
-    out_idx = 0;
-    for (i = 1;
-         h->delayed_pic[i] &&
-         !(h->delayed_pic[i]->f->flags & AV_FRAME_FLAG_KEY) &&
-         !h->delayed_pic[i]->mmco_reset;
-         i++)
-        if (h->delayed_pic[i]->poc < out->poc) {
-            out     = h->delayed_pic[i];
-            out_idx = i;
-        }
+        out = h->delayed_pic[0];
+        out_idx = 0;
+        for (i = 1;
+             h->delayed_pic[i] &&
+             !(h->delayed_pic[i]->f->flags & AV_FRAME_FLAG_KEY) &&
+             !h->delayed_pic[i]->mmco_reset;
+             i++)
+            if (h->delayed_pic[i]->poc < out->poc) {
+                out     = h->delayed_pic[i];
+                out_idx = i;
+            }
 
-    for (i = out_idx; h->delayed_pic[i]; i++)
-        h->delayed_pic[i] = h->delayed_pic[i + 1];
+        for (i = out_idx; h->delayed_pic[i]; i++)
+            h->delayed_pic[i] = h->delayed_pic[i + 1];
 
-    if (out) {
-        h->frame_recovered |= out->recovered;
-        out->recovered |= h->frame_recovered & FRAME_RECOVERED_SEI;
+        if (out) {
+            h->frame_recovered |= out->recovered;
+            out->recovered |= h->frame_recovered & FRAME_RECOVERED_SEI;
 
-        out->reference &= ~DELAYED_PIC_REF;
-        ret = finalize_frame(h, dst_frame, out, got_frame);
-        if (ret < 0)
-            return ret;
-        if (*got_frame)
-            break;
-    }
+            out->reference &= ~DELAYED_PIC_REF;
+            ret = finalize_frame(h, dst_frame, out, got_frame);
+            if (ret < 0)
+                return ret;
+            if (*got_frame)
+                break;
+        }
     }
 
     return buf_index;



More information about the ffmpeg-cvslog mailing list