diff mbox series

[FFmpeg-devel,v2,28/71] avcodec/mpegvideo: Reindent after the previous commit

Message ID GV1P250MB073771239FECB9443808634B8FE02@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM
State New
Headers show
Series [FFmpeg-devel,v2,01/71] avcodec/ratecontrol: Fix double free on error | expand

Commit Message

Andreas Rheinhardt May 11, 2024, 8:50 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/mpegvideo.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
diff mbox series

Patch

diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 5c6ec7db55..d82a89566c 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -617,12 +617,12 @@  int ff_mpv_init_context_frame(MpegEncContext *s)
         if (s->codec_id == AV_CODEC_ID_MPEG4) {
             ALLOC_POOL(mbskip_table, mb_array_size + 2,
                        FF_REFSTRUCT_POOL_FLAG_ZERO_EVERY_TIME);
-        if (!s->encoding) {
-            /* cbp, pred_dir */
-            if (!(s->cbp_table      = av_mallocz(mb_array_size)) ||
-                !(s->pred_dir_table = av_mallocz(mb_array_size)))
-                return AVERROR(ENOMEM);
-        }
+            if (!s->encoding) {
+                /* cbp, pred_dir */
+                if (!(s->cbp_table      = av_mallocz(mb_array_size)) ||
+                    !(s->pred_dir_table = av_mallocz(mb_array_size)))
+                    return AVERROR(ENOMEM);
+            }
         }
     }