diff mbox series

[FFmpeg-devel,15/22] fftools/ffmpeg: reindent after previous commit

Message ID 20221014101548.3486-2-anton@khirnov.net
State Accepted
Commit 18d96e87033a8b6b8e339587b50e45d1d1fa219a
Headers show
Series [FFmpeg-devel,01/13] fftools/ffmpeg_mux: do not unref a NULL packet | 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

Anton Khirnov Oct. 14, 2022, 10:15 a.m. UTC
---
 fftools/ffmpeg.c | 34 +++++++++++++++++-----------------
 1 file changed, 17 insertions(+), 17 deletions(-)
diff mbox series

Patch

diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
index afbfff6ba2..f426dbc80f 100644
--- a/fftools/ffmpeg.c
+++ b/fftools/ffmpeg.c
@@ -511,30 +511,30 @@  static void ost_free(OutputStream **post)
     if (!ost)
         return;
 
-        av_bsf_free(&ost->bsf_ctx);
+    av_bsf_free(&ost->bsf_ctx);
 
-        av_frame_free(&ost->filtered_frame);
-        av_frame_free(&ost->sq_frame);
-        av_frame_free(&ost->last_frame);
-        av_packet_free(&ost->pkt);
-        av_dict_free(&ost->encoder_opts);
+    av_frame_free(&ost->filtered_frame);
+    av_frame_free(&ost->sq_frame);
+    av_frame_free(&ost->last_frame);
+    av_packet_free(&ost->pkt);
+    av_dict_free(&ost->encoder_opts);
 
-        av_freep(&ost->forced_keyframes);
-        av_expr_free(ost->forced_keyframes_pexpr);
-        av_freep(&ost->avfilter);
-        av_freep(&ost->logfile_prefix);
+    av_freep(&ost->forced_keyframes);
+    av_expr_free(ost->forced_keyframes_pexpr);
+    av_freep(&ost->avfilter);
+    av_freep(&ost->logfile_prefix);
 
 #if FFMPEG_OPT_MAP_CHANNEL
-        av_freep(&ost->audio_channels_map);
-        ost->audio_channels_mapped = 0;
+    av_freep(&ost->audio_channels_map);
+    ost->audio_channels_mapped = 0;
 #endif
 
-        av_dict_free(&ost->sws_dict);
-        av_dict_free(&ost->swr_opts);
+    av_dict_free(&ost->sws_dict);
+    av_dict_free(&ost->swr_opts);
 
-        if (ost->enc_ctx)
-            av_freep(&ost->enc_ctx->stats_in);
-        avcodec_free_context(&ost->enc_ctx);
+    if (ost->enc_ctx)
+        av_freep(&ost->enc_ctx->stats_in);
+    avcodec_free_context(&ost->enc_ctx);
 
     av_freep(post);
 }