diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2024-01-10 21:41:53 +0100 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2024-01-14 12:22:21 +0100 |
commit | a600f593a860f22067efa84f539b122b84d109b9 (patch) | |
tree | 181355e9c8125332e27894d968c9d9afd3cc9717 | |
parent | a87a52ed0b561dc231e707ee94299561631085ee (diff) | |
download | ffmpeg-a600f593a860f22067efa84f539b122b84d109b9.tar.gz |
lavf/astenc: fix weird indent, use braces in else statements
Braces are employed to improve readability.
-rw-r--r-- | libavformat/astenc.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/libavformat/astenc.c b/libavformat/astenc.c index 259948b276..250a54b573 100644 --- a/libavformat/astenc.c +++ b/libavformat/astenc.c @@ -143,14 +143,16 @@ static int ast_write_trailer(AVFormatContext *s) /* Loopstart if provided */ if (ast->loopstart > 0) { - if (ast->loopstart >= samples) { - av_log(s, AV_LOG_WARNING, "Loopstart value is out of range and will be ignored\n"); - ast->loopstart = -1; - avio_skip(pb, 4); - } else - avio_wb32(pb, ast->loopstart); - } else + if (ast->loopstart >= samples) { + av_log(s, AV_LOG_WARNING, "Loopstart value is out of range and will be ignored\n"); + ast->loopstart = -1; + avio_skip(pb, 4); + } else { + avio_wb32(pb, ast->loopstart); + } + } else { avio_skip(pb, 4); + } /* Loopend if provided. Otherwise number of samples again */ if (ast->loopend && ast->loopstart >= 0) { |