diff mbox series

[FFmpeg-devel,2/2] avcodec/h264dec: Reindent after the previous commit

Message ID AS8P250MB0744BC70FF4EC3F844E3CABA8F512@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit 76b41511757f72f2df6b77122088f07fe70886b5
Headers show
Series [FFmpeg-devel,1/2] avcodec/h264dec: Return early in ff_h264_draw_horiz_band() | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt Feb. 19, 2024, 12:34 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/h264dec.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
diff mbox series

Patch

diff --git a/libavcodec/h264dec.c b/libavcodec/h264dec.c
index 5cffeafc6b..b4973fce29 100644
--- a/libavcodec/h264dec.c
+++ b/libavcodec/h264dec.c
@@ -125,16 +125,16 @@  void ff_h264_draw_horiz_band(const H264Context *h, H264SliceContext *sl,
     desc   = av_pix_fmt_desc_get(avctx->pix_fmt);
     vshift = desc->log2_chroma_h;
 
-        offset[0] = y * src->linesize[0];
-        offset[1] =
-        offset[2] = (y >> vshift) * src->linesize[1];
-        for (int i = 3; i < AV_NUM_DATA_POINTERS; i++)
-            offset[i] = 0;
+    offset[0] = y * src->linesize[0];
+    offset[1] =
+    offset[2] = (y >> vshift) * src->linesize[1];
+    for (int i = 3; i < AV_NUM_DATA_POINTERS; i++)
+        offset[i] = 0;
 
-        emms_c();
+    emms_c();
 
-        avctx->draw_horiz_band(avctx, src, offset,
-                               y, h->picture_structure, height);
+    avctx->draw_horiz_band(avctx, src, offset,
+                           y, h->picture_structure, height);
 }
 
 void ff_h264_free_tables(H264Context *h)