mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
demux: add a format-name property
It can be useful to know the underlying format of any entry in the track list. Only applicable to the lavf demuxer.
This commit is contained in:
@@ -111,6 +111,7 @@ struct mp_codec_params {
|
||||
|
||||
// STREAM_VIDEO + STREAM_AUDIO
|
||||
int bits_per_coded_sample;
|
||||
char *format_name; // pixel format (video) or sample format (audio)
|
||||
|
||||
// STREAM_SUB
|
||||
double frame_based; // timestamps are frame-based (and this is the
|
||||
|
||||
Reference in New Issue
Block a user