mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-25 04:30:02 +00:00
libavformat/oggenc: add {} to complex ifs
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
c2c066784f
commit
40ceb6d49f
@ -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 &&
|
||||
|
Loading…
Reference in New Issue
Block a user