player/loadfile: add codec profile to print_stream()

This commit is contained in:
Kacper Michajłow 2024-04-12 14:27:08 +02:00
parent e720159f72
commit 0bcc33692d
1 changed files with 2 additions and 0 deletions

View File

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