aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMatthieu Bouron <matthieu.bouron@smartjog.com>2012-05-21 13:05:01 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-05-22 15:04:59 +0200
commitf452d6c34db08e9315fde5761a8c2d38533dfcef (patch)
treebdf828e0b72644837baebde474ae46352f238f8d /libavformat
parent965b8072781b439b36835a3df345a4c68e0c211f (diff)
downloadffmpeg-f452d6c34db08e9315fde5761a8c2d38533dfcef.tar.gz
mxfdec: fix frame height computation for mixed fields layout
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mxfdec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
index 8da3367be6..4cfbf95229 100644
--- a/libavformat/mxfdec.c
+++ b/libavformat/mxfdec.c
@@ -1517,8 +1517,9 @@ static int mxf_parse_structural_metadata(MXFContext *mxf)
break; /* The correct thing to do here is fall through, but by breaking we might be
able to decode some streams at half the vertical resolution, rather than not al all.
It's also for compatibility with the old behavior. */
- case SeparateFields:
case MixedFields:
+ break;
+ case SeparateFields:
st->codec->height *= 2; /* Turn field height into frame height. */
break;
default: