aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-06-01 21:35:02 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2015-08-20 14:29:11 +0200
commit39430866566a087919a31641fa24ecfdd4d7719a (patch)
treeffb962a407676ac6fb3ac0aa48cffe65728b57a0
parent35ab85884b66c04ca7b9758effab7ec6e3bd3016 (diff)
downloadffmpeg-39430866566a087919a31641fa24ecfdd4d7719a.tar.gz
avformat/mxfenc: Accept MXF D-10 with 49.999840 Mbit/sec
This is the maximum rate possible based on the frame size limit of MXF D-10 Previous version reviewed by tim nicholson <nichot20@yahoo.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit d7a762553c6f6c422adb6632354bcc4ff577b701) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/mxfenc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c
index 6a6b7c2079..3c0283b502 100644
--- a/libavformat/mxfenc.c
+++ b/libavformat/mxfenc.c
@@ -1730,9 +1730,10 @@ static int mxf_write_header(AVFormatContext *s)
return ret;
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;
- else sc->index = 5;
+ if ((sc->video_bit_rate == 50000000) && (mxf->time_base.den == 25)) {
+ sc->index = 3;
+ } else if ((sc->video_bit_rate == 49999840 || sc->video_bit_rate == 50000000) && (mxf->time_base.den != 25)) {
+ sc->index = 5;
} else if (sc->video_bit_rate == 40000000) {
if (mxf->time_base.den == 25) sc->index = 7;
else sc->index = 9;