aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2013-09-09 10:03:14 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2013-09-12 23:17:32 +0200
commit9fde820d8e3cd6b9af5668b19047a465b108b298 (patch)
treec1a96dcc283b4c994b4e491f84f7f5d7b5587632
parentb5e2ef771d8955a149db932f4a3c7562bcd41fe2 (diff)
downloadffmpeg-9fde820d8e3cd6b9af5668b19047a465b108b298.tar.gz
Use rc_max_rate if no video bit_rate was specified when muxing mxf_d10.
Fixes ticket #2945. Reviewed-by: Matthieu Bouron (cherry picked from commit d73565d5ddf41d4b7805327cdb271c59d8c3fc59)
-rw-r--r--libavformat/mxfenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c
index 257542cec9..e9a870bf3e 100644
--- a/libavformat/mxfenc.c
+++ b/libavformat/mxfenc.c
@@ -1707,7 +1707,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;