summaryrefslogtreecommitdiff
path: root/libavformat/matroskaenc.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2016-10-11 14:36:16 -0300
committerJames Almer <jamrial@gmail.com>2016-10-11 19:49:19 -0300
commit8063978bfc864e6e57621d9e103169f995e7d95b (patch)
treec99f36d790048bceee9174ad7d265720b988ac41 /libavformat/matroskaenc.c
parent51f3278089bb5d65d4a1c47cd037d9d706a254f0 (diff)
avformat/matroskaenc: don't write a FlagInterlaced element if it would write the default value
The spec says: "Mandatory elements with a default value may be left out of the file. In the absence of a mandatory element, the element's default value is used." Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/matroskaenc.c')
-rw-r--r--libavformat/matroskaenc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index 5293a9b5e3..a48f5bb3c6 100644
--- a/libavformat/matroskaenc.c
+++ b/libavformat/matroskaenc.c
@@ -876,8 +876,6 @@ static void mkv_write_field_order(AVIOContext *pb, int mode,
{
switch (field_order) {
case AV_FIELD_UNKNOWN:
- put_ebml_uint(pb, MATROSKA_ID_VIDEOFLAGINTERLACED,
- MATROSKA_VIDEO_INTERLACE_FLAG_UNDETERMINED);
break;
case AV_FIELD_PROGRESSIVE:
put_ebml_uint(pb, MATROSKA_ID_VIDEOFLAGINTERLACED,