summaryrefslogtreecommitdiff
path: root/libavformat/mxf.h
diff options
context:
space:
mode:
authorPierre-Anthony Lemieux <pal@sandflow.com>2021-07-18 11:07:43 -0700
committerMarton Balint <cus@passwd.hu>2021-07-29 22:38:02 +0200
commit74e43824421bac9fa0816dce8b069eeab6f4cd07 (patch)
tree7194f92438692706ed3f19f04afead13e168730a /libavformat/mxf.h
parent610658c146f54858a5da351926fe685ca4961db7 (diff)
downloadffmpeg-74e43824421bac9fa0816dce8b069eeab6f4cd07.tar.gz
avformat/mxfdec: fix frame wrapping detection for J2K essence container
For JPEG 2000 essence, the MXF input format module currently uses the value of byte 14 of the essence container UL to determine whether the J2K essence is clip- (byte 14 is 0x02) or frame-wrapped (byte 14 is 0x01). Otherwise it assumes an unknown wrapping. Additional wrappings are documented in SMPTE ST422:2019: 0x03: Interlaced Frame, 1 field/KLV 0x04: Interlaced Frame, 2 fields/KLV 0x05: Field-wrapped Picture Element 0x06: Frame-wrapped Picture Element And these should also be handled as frame wrapped content. Signed-off-by: Pierre-Anthony Lemieux <pal@sandflow.com> Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat/mxf.h')
-rw-r--r--libavformat/mxf.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/mxf.h b/libavformat/mxf.h
index eb473d8a55..fe9c52732c 100644
--- a/libavformat/mxf.h
+++ b/libavformat/mxf.h
@@ -76,7 +76,8 @@ typedef enum {
NormalWrap = 0,
D10D11Wrap,
RawAWrap,
- RawVWrap
+ RawVWrap,
+ J2KWrap
} MXFWrappingIndicatorType;
typedef struct MXFLocalTagPair {