diff mbox series

[FFmpeg-devel,2/2] avcodec/mpegutils: Simplify indenting

Message ID GV1P250MB0737083AC6D66D9484C0C6AB8F302@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit a6189ba896b207c40007704a1aec7ef68a8eb50b
Headers show
Series [FFmpeg-devel,1/2] avcodec/mpegutils: Avoid allocations when using AVBPrint | 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 March 23, 2024, 12:18 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/mpegutils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libavcodec/mpegutils.c b/libavcodec/mpegutils.c
index 7f499b3d0f..d94e8f422f 100644
--- a/libavcodec/mpegutils.c
+++ b/libavcodec/mpegutils.c
@@ -265,7 +265,7 @@  void ff_print_debug_info2(AVCodecContext *avctx, AVFrame *pict,
             margin_left++;
 
         av_bprint_init(&buf, 1, AV_BPRINT_SIZE_UNLIMITED);
-        av_bprintf(&buf, "%*s", margin_left, " ");
+        av_bprint_chars(&buf, ' ', margin_left);
 
         n = 0;
         if (avctx->debug & FF_DEBUG_SKIP)