summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2024-04-12 14:27:08 +0200
committerKacper Michajłow <kasper93@gmail.com>2024-04-15 19:34:40 +0200
commit0bcc33692d3824535cc9020f033892a202bc4923 (patch)
tree899f1b827fe7d46553c2bbd64091630a8a1786ee /player
parente720159f72be2a816db849acb286f36a1ac4622b (diff)
downloadmpv-0bcc33692d3824535cc9020f033892a202bc4923.tar.bz2
mpv-0bcc33692d3824535cc9020f033892a202bc4923.tar.xz
player/loadfile: add codec profile to print_stream()
Diffstat (limited to 'player')
-rw-r--r--player/loadfile.c2
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);