1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

libavformat/mxfenc: add {} to complex ifs

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-10-21 17:36:53 +02:00
parent b8a64d69a9
commit c2c066784f

View File

@ -1700,16 +1700,16 @@ static int mxf_write_header(AVFormatContext *s)
if (ret < 0)
return ret;
if (s->oformat == &ff_mxf_d10_muxer) {
if (st->codec->bit_rate == 50000000)
if (st->codec->bit_rate == 50000000) {
if (mxf->time_base.den == 25) sc->index = 3;
else sc->index = 5;
else if (st->codec->bit_rate == 40000000)
} else if (st->codec->bit_rate == 40000000) {
if (mxf->time_base.den == 25) sc->index = 7;
else sc->index = 9;
else if (st->codec->bit_rate == 30000000)
} else if (st->codec->bit_rate == 30000000) {
if (mxf->time_base.den == 25) sc->index = 11;
else sc->index = 13;
else {
} else {
av_log(s, AV_LOG_ERROR, "error MXF D-10 only support 30/40/50 mbit/s\n");
return -1;
}