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:
Dudemanguy
2023-10-28 00:41:57 -05:00
parent 8a9749b8a5
commit ccafd40ccc
4 changed files with 14 additions and 4 deletions

View File

@@ -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