On Sun, 29 Oct 2017 14:56:20 +0100 Moritz Barsnick <barsn...@gmx.net> wrote:
> On Sun, Oct 29, 2017 at 12:08:05 +0100, Peter Große wrote: > > } else duration = 1; > > For style/readability, the statement should be on a new line, perhaps > even with brackets. (Not necessarily as part of this patch though.) Sure. Regards Peter
From 14032f4185a0824b819b062068f5777a33057ece Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20Gro=C3=9Fe?= <pe...@friiks.de> Date: Sun, 29 Oct 2017 15:07:12 +0100 Subject: [PATCH] ffmpeg.c: fix code style in seek_to_start MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To: ffmpeg-devel@ffmpeg.org Signed-off-by: Peter GroÃe <pe...@friiks.de> --- fftools/ffmpeg.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 17b594bac8..1e43b959da 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -4140,14 +4140,17 @@ static int seek_to_start(InputFile *ifile, AVFormatContext *is) AVRational sample_rate = {1, avctx->sample_rate}; duration = av_rescale_q(ist->nb_samples, sample_rate, ist->st->time_base); - } else + } else { continue; + } } else { if (ist->framerate.num) { duration = av_rescale_q(1, av_inv_q(ist->framerate), ist->st->time_base); } else if (ist->st->avg_frame_rate.num) { duration = av_rescale_q(1, av_inv_q(ist->st->avg_frame_rate), ist->st->time_base); - } else duration = 1; + } else { + duration = 1; + } } if (!ifile->duration) ifile->time_base = ist->st->time_base; -- 2.13.6
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel