diff mbox series

[FFmpeg-devel,18/57] avcodec/mpegpicture: Reindent after the previous commit

Message ID AS8P250MB074478887AAEDA09E1E135048F1B2@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM
State New
Headers show
Series [FFmpeg-devel,01/14] avcodec/get_buffer: Remove redundant check | expand

Commit Message

Andreas Rheinhardt April 29, 2024, 9:13 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/mpegpicture.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
diff mbox series

Patch

diff --git a/libavcodec/mpegpicture.c b/libavcodec/mpegpicture.c
index bd4ddc6b55..b83fee67f8 100644
--- a/libavcodec/mpegpicture.c
+++ b/libavcodec/mpegpicture.c
@@ -291,12 +291,9 @@  fail:
 
 int ff_find_unused_picture(AVCodecContext *avctx, Picture *picture, int shared)
 {
-    int i;
-
-        for (i = 0; i < MAX_PICTURE_COUNT; i++) {
-            if (!picture[i].f->buf[0])
-                return i;
-        }
+    for (int i = 0; i < MAX_PICTURE_COUNT; i++)
+        if (!picture[i].f->buf[0])
+            return i;
 
     av_log(avctx, AV_LOG_FATAL,
            "Internal error, picture buffer overflow\n");