diff mbox series

[FFmpeg-devel,08/18] fftools/ffmpeg_enc: reindent after previous commit

Message ID 20230826151144.24858-8-anton@khirnov.net
State Accepted
Commit d65d0f4df1434ccb5429cd129b3bdb4a7f06f467
Headers show
Series [FFmpeg-devel,01/18] fftools/ffmpeg: stop explicitly closing output streams on input EOF | 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 Aug. 26, 2023, 3:11 p.m. UTC
---
 fftools/ffmpeg_enc.c | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
diff mbox series

Patch

diff --git a/fftools/ffmpeg_enc.c b/fftools/ffmpeg_enc.c
index 80a49fe606..f28884e50c 100644
--- a/fftools/ffmpeg_enc.c
+++ b/fftools/ffmpeg_enc.c
@@ -249,15 +249,15 @@  static int enc_choose_timebase(OutputStream *ost, AVFrame *frame)
     }
 
     if (fr.num > 0) {
-    if (enc->codec->supported_framerates && !ost->force_fps) {
-        int idx = av_find_nearest_q_idx(fr, enc->codec->supported_framerates);
-        fr = enc->codec->supported_framerates[idx];
-    }
-    // reduce frame rate for mpeg4 to be within the spec limits
-    if (enc->codec_id == AV_CODEC_ID_MPEG4) {
-        av_reduce(&fr.num, &fr.den,
-                  fr.num, fr.den, 65535);
-    }
+        if (enc->codec->supported_framerates && !ost->force_fps) {
+            int idx = av_find_nearest_q_idx(fr, enc->codec->supported_framerates);
+            fr = enc->codec->supported_framerates[idx];
+        }
+        // reduce frame rate for mpeg4 to be within the spec limits
+        if (enc->codec_id == AV_CODEC_ID_MPEG4) {
+            av_reduce(&fr.num, &fr.den,
+                      fr.num, fr.den, 65535);
+        }
     }
 
     if (av_q2d(fr) > 1e3 && ost->vsync_method != VSYNC_PASSTHROUGH &&