diff options
author | wm4 <wm4@nowhere> | 2019-12-03 21:15:40 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-12-03 21:15:40 +0100 |
commit | d60bbd86e35f3368fcda861099fa8e63b5bb7a7a (patch) | |
tree | 08b2a616c5183e9dbf496f8343683048763d4e11 /audio/fmt-conversion.c | |
parent | 370ed5777c6f0b7e89542bcd3357270b88e09e93 (diff) | |
download | mpv-d60bbd86e35f3368fcda861099fa8e63b5bb7a7a.tar.bz2 mpv-d60bbd86e35f3368fcda861099fa8e63b5bb7a7a.tar.xz |
demux_lavf: export demuxer_id for more formats which have it
See previous commit. libavformat exports this information as AVStream.id
field.
The big problem is that the libavformat field is simply 0 if it's
unknown (i.e. the demuxer never sets it). So it needs to remain a
whitelist. Just add more formats which are known to have a meaningful
ID.
I considered exporting IDs for all formats, and then either leaving the
values as they are, or filtering duplicate values (and choosing
arbitrary but unique different IDs). But then again, I think it's sort
of mpv's job to filter FFmpeg's absurd bullshit API, and it should make
an effort to hide it rather than to reflect it.
See: #7211
Diffstat (limited to 'audio/fmt-conversion.c')
0 files changed, 0 insertions, 0 deletions