diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2024-04-12 14:27:08 +0200 |
---|---|---|
committer | Kacper Michajłow <kasper93@gmail.com> | 2024-04-15 19:34:40 +0200 |
commit | 0bcc33692d3824535cc9020f033892a202bc4923 (patch) | |
tree | 899f1b827fe7d46553c2bbd64091630a8a1786ee /player/loadfile.c | |
parent | e720159f72be2a816db849acb286f36a1ac4622b (diff) | |
download | mpv-0bcc33692d3824535cc9020f033892a202bc4923.tar.bz2 mpv-0bcc33692d3824535cc9020f033892a202bc4923.tar.xz |
player/loadfile: add codec profile to print_stream()
Diffstat (limited to 'player/loadfile.c')
-rw-r--r-- | player/loadfile.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/player/loadfile.c b/player/loadfile.c index 44ca805913..7421a47d26 100644 --- a/player/loadfile.c +++ b/player/loadfile.c @@ -278,6 +278,8 @@ static void print_stream(struct MPContext *mpctx, struct track *t) APPEND(b, " '%s'", t->title); const char *codec = s ? s->codec->codec : NULL; APPEND(b, " (%s", codec ? codec : "<unknown>"); + if (s && s->codec->codec_profile) + APPEND(b, " [%s]", s->codec->codec_profile); if (t->type == STREAM_VIDEO) { if (s && s->codec->disp_w) APPEND(b, " %dx%d", s->codec->disp_w, s->codec->disp_h); |