[FFmpeg-devel] [PATCH 2/7] lavf/mxfdec: support segmented frame layout as separate fields layout
Matthieu Bouron
matthieu.bouron at gmail.com
Thu Mar 28 15:41:46 CET 2013
According to S377M, segmented frame layout is identical to separate
field layout except that the two fields are taken from a single scan
of the incoming image, ie: they are coincident in time. Thus the
resulting frame is progressive.
---
libavformat/mxfdec.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
index 4580e1b..5244e47 100644
--- a/libavformat/mxfdec.c
+++ b/libavformat/mxfdec.c
@@ -1526,10 +1526,6 @@ static int mxf_parse_structural_metadata(MXFContext *mxf)
st->codec->width = descriptor->width;
st->codec->height = descriptor->height; /* Field height, not frame height */
switch (descriptor->frame_layout) {
- case SegmentedFrame:
- /* This one is a weird layout I don't fully understand. */
- av_log(mxf->fc, AV_LOG_INFO, "SegmentedFrame layout isn't currently supported\n");
- break;
case FullFrame:
st->codec->field_order = AV_FIELD_PROGRESSIVE;
break;
@@ -1541,6 +1537,8 @@ static int mxf_parse_structural_metadata(MXFContext *mxf)
It's also for compatibility with the old behavior. */
case MixedFields:
break;
+ case SegmentedFrame:
+ st->codec->field_order = AV_FIELD_PROGRESSIVE;
case SeparateFields:
st->codec->height *= 2; /* Turn field height into frame height. */
break;
--
1.8.2
More information about the ffmpeg-devel
mailing list