mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 12:09:55 +00:00
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>
This commit is contained in:
parent
51f3278089
commit
8063978bfc
@ -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,
|
||||
|
@ -4,6 +4,6 @@
|
||||
FATE_MATROSKA-$(call DEMMUX, MATROSKA, MATROSKA) += fate-matroska-remux
|
||||
fate-matroska-remux: CMD = md5 -i $(TARGET_SAMPLES)/vp9-test-vectors/vp90-2-2pass-akiyo.webm -color_trc 4 -c:v copy -fflags +bitexact -strict -2 -f matroska
|
||||
fate-matroska-remux: CMP = oneline
|
||||
fate-matroska-remux: REF = d1a5fc15908ba10ca3efa282059ca79f
|
||||
fate-matroska-remux: REF = 84e950f59677e306f944fca484888c5d
|
||||
|
||||
FATE_SAMPLES_AVCONV += $(FATE_MATROSKA-yes)
|
||||
|
Loading…
Reference in New Issue
Block a user