[FFmpeg-cvslog] libavformat/oggenc: add {} to complex ifs
Michael Niedermayer
git at videolan.org
Sun Oct 21 18:08:56 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Oct 21 17:37:15 2012 +0200| [40ceb6d49f19a8c1795b3f453cd7c0b7e540dd81] | committer: Michael Niedermayer
libavformat/oggenc: add {} to complex ifs
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=40ceb6d49f19a8c1795b3f453cd7c0b7e540dd81
---
libavformat/oggenc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavformat/oggenc.c b/libavformat/oggenc.c
index 4871a0e..1a0e4e3 100644
--- a/libavformat/oggenc.c
+++ b/libavformat/oggenc.c
@@ -387,13 +387,13 @@ static int ogg_write_header(AVFormatContext *s)
AVStream *st = s->streams[i];
unsigned serial_num = i;
- if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO)
+ if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO) {
if (st->codec->codec_id == AV_CODEC_ID_OPUS)
/* Opus requires a fixed 48kHz clock */
avpriv_set_pts_info(st, 64, 1, 48000);
else
avpriv_set_pts_info(st, 64, 1, st->codec->sample_rate);
- else if (st->codec->codec_type == AVMEDIA_TYPE_VIDEO)
+ } else if (st->codec->codec_type == AVMEDIA_TYPE_VIDEO)
avpriv_set_pts_info(st, 64, st->codec->time_base.num, st->codec->time_base.den);
if (st->codec->codec_id != AV_CODEC_ID_VORBIS &&
st->codec->codec_id != AV_CODEC_ID_THEORA &&
More information about the ffmpeg-cvslog
mailing list