[FFmpeg-cvslog] Use rc_max_rate if no video bit_rate was specified when muxing mxf_d10.
Carl Eugen Hoyos
git at videolan.org
Thu Sep 12 22:28:01 CEST 2013
ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Mon Sep 9 10:03:14 2013 +0200| [d73565d5ddf41d4b7805327cdb271c59d8c3fc59] | committer: Carl Eugen Hoyos
Use rc_max_rate if no video bit_rate was specified when muxing mxf_d10.
Fixes ticket #2945.
Reviewed-by: Matthieu Bouron
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d73565d5ddf41d4b7805327cdb271c59d8c3fc59
---
libavformat/mxfenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c
index a4d96ee..51ed212 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;
More information about the ffmpeg-cvslog
mailing list