avformat/matroskaenc: don't write a FlagInterlaced element if it would write the...
authorJames Almer <jamrial@gmail.com>
Tue, 11 Oct 2016 17:36:16 +0000 (14:36 -0300)
committerJames Almer <jamrial@gmail.com>
Tue, 11 Oct 2016 22:49:19 +0000 (19:49 -0300)
commit8063978bfc864e6e57621d9e103169f995e7d95b
treec99f36d790048bceee9174ad7d265720b988ac41
parent51f3278089bb5d65d4a1c47cd037d9d706a254f0
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>
libavformat/matroskaenc.c
tests/fate/matroska.mak