]> git.sesse.net Git - ffmpeg/commit
avformat/matroskadec: Add support for FlagOriginal
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 16 Feb 2021 17:41:30 +0000 (18:41 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 2 Mar 2021 05:54:47 +0000 (06:54 +0100)
commitb243be85d98384b05b4ef302a2228e10509754ea
treeb0826cb77814b4afa562dc2a0b078fbfec601b34
parent74c4c539538e36d8df02de2484b045010d292f2c
avformat/matroskadec: Add support for FlagOriginal

Needs a CountedElement in order to distinguish the case of the element
not being present and the element being present with a value of zero.

(It has been argued by Ridley Combs that one should only ever use the
AV_DISPOSITION_DUB field for audio tracks. Yet given that there is no
definition for the disposition flags, one can also interpret it to mean
that e.g. a subtitle track is meant to be used with the dubbed audio
track or the original audio track. This commit interprets this flag in
this sense, which also allows to maintain it on remuxing.)

Reviewed-by: Anton Khirnov <anton@khirnov.net>
Reviewed-by: Ridley Combs <rcombs@rcombs.me>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavformat/matroska.h
libavformat/matroskadec.c