[FFmpeg-cvslog] mxfdec: fix frame height computation for mixed fields layout
Matthieu Bouron
git at videolan.org
Tue May 22 16:06:49 CEST 2012
ffmpeg | branch: master | Matthieu Bouron <matthieu.bouron at smartjog.com> | Mon May 21 13:05:01 2012 +0200| [f452d6c34db08e9315fde5761a8c2d38533dfcef] | committer: Michael Niedermayer
mxfdec: fix frame height computation for mixed fields layout
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f452d6c34db08e9315fde5761a8c2d38533dfcef
---
libavformat/mxfdec.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
index 8da3367..4cfbf95 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:
More information about the ffmpeg-cvslog
mailing list