diff options
author | wm4 <wm4@nowhere> | 2019-12-03 21:04:53 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-12-03 21:04:53 +0100 |
commit | 370ed5777c6f0b7e89542bcd3357270b88e09e93 (patch) | |
tree | 01cab3defe78fd1a50de0586947f713da34fb7f6 /DOCS/man | |
parent | b6f605285caaebedfb8882c36609099fdebc424f (diff) | |
download | mpv-370ed5777c6f0b7e89542bcd3357270b88e09e93.tar.bz2 mpv-370ed5777c6f0b7e89542bcd3357270b88e09e93.tar.xz |
demux: do not make up demuxer_id
The demuxer_id (exported in as "src-id" property) is supposed to be the
native stream ID, as it exists in the file, or -1 if that does not exist
(actually any negative value), or if it is unknown.
Until now, an ID was made up if it was missing. That seems like strange
non-sense, and I can't find the reason why it was done. But it was
probably for convenience by the EDL stuff or so.
Stop doing this. Fortunately, the src-id property was documented as
being unavailable if the ID is not known. Even the code for this was
present, it was just inactive until now. Extend input.rst with some
explanations.
Also fixing 3 other places where negative demuxer_id was ignored or
avoided.
Diffstat (limited to 'DOCS/man')
-rw-r--r-- | DOCS/man/input.rst | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/DOCS/man/input.rst b/DOCS/man/input.rst index c96fd57300..323a961804 100644 --- a/DOCS/man/input.rst +++ b/DOCS/man/input.rst @@ -2145,7 +2145,11 @@ Property list String describing the media type. One of ``audio``, ``video``, ``sub``. ``track-list/N/src-id`` - Track ID as used in the source file. Not always available. + Track ID as used in the source file. Not always available. (It is + missing if the format has no native ID, if the track is a pseudo-track + that does not exist in this way in the actual file, or if the format + is handled by libavformat, and the format was not whitelisted as having + track IDs.) ``track-list/N/title`` Track title as it is stored in the file. Not always available. |