diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2013-09-09 10:03:14 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2013-09-12 08:58:27 +0200 |
commit | d73565d5ddf41d4b7805327cdb271c59d8c3fc59 (patch) | |
tree | 73ccaf0f945f320dc5bdcd0691719e0bfc155bc2 /libavformat/mxfenc.c | |
parent | 52cf08b4c8859f7cac010a7a59f7aa369384ad85 (diff) | |
download | ffmpeg-d73565d5ddf41d4b7805327cdb271c59d8c3fc59.tar.gz |
Use rc_max_rate if no video bit_rate was specified when muxing mxf_d10.
Fixes ticket #2945.
Reviewed-by: Matthieu Bouron
Diffstat (limited to 'libavformat/mxfenc.c')
-rw-r--r-- | libavformat/mxfenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c index a4d96ee813..51ed2122df 100644 --- a/libavformat/mxfenc.c +++ b/libavformat/mxfenc.c @@ -1710,7 +1710,7 @@ static int mxf_write_header(AVFormatContext *s) ret = av_timecode_init(&mxf->tc, rate, 0, 0, s); if (ret < 0) return ret; - sc->video_bit_rate = st->codec->bit_rate; + sc->video_bit_rate = st->codec->bit_rate ? st->codec->bit_rate : st->codec->rc_max_rate; if (s->oformat == &ff_mxf_d10_muxer) { if (sc->video_bit_rate == 50000000) { if (mxf->time_base.den == 25) sc->index = 3; |