diff options
author | Peter Große <pegro@friiks.de> | 2017-10-29 15:07:12 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-11-05 03:14:29 +0100 |
commit | 0ae1f6ddeb350d767a4860e1dcffea9cebe9917c (patch) | |
tree | f98311c15228ba0516e1b2a2d6728522407f759b /fftools/ffmpeg.c | |
parent | 3ddb887c88483ce089b29a30d0d0aa574c8cdc66 (diff) | |
download | ffmpeg-0ae1f6ddeb350d767a4860e1dcffea9cebe9917c.tar.gz |
ffmpeg.c: fix code style in seek_to_start
Signed-off-by: Peter Große <pegro@friiks.de>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'fftools/ffmpeg.c')
-rw-r--r-- | fftools/ffmpeg.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 65dbe93626..679929cfc4 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -4146,14 +4146,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; |