mirror of
https://github.com/mpv-player/mpv
synced 2025-02-23 08:26:56 +00:00
mplayer: fix invalid memory access in print_stream()
This is a regression introduced by commit 9c02ae7e95
.
This commit is contained in:
parent
714226b20c
commit
a425777b96
@ -425,7 +425,7 @@ static void print_stream(struct MPContext *mpctx, struct sh_stream *s)
|
||||
mp_msg(MSGT_CPLAYER, MSGL_INFO, "%#x", format);
|
||||
}
|
||||
} else if (s->type == STREAM_SUB) {
|
||||
char t = ((sh_sub_t*)s)->type;
|
||||
char t = s->sub->type;
|
||||
const char *name = NULL;
|
||||
switch (t) {
|
||||
case 't': name = "SRT"; break;
|
||||
|
Loading…
Reference in New Issue
Block a user