mirror of
https://github.com/mpv-player/mpv
synced 2025-01-14 02:51:26 +00:00
demux_lavf: fix code printing subtitle type
Fix printing of subtitle type, the wrong index was used to look up the type. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@33664 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
cb5c492aa7
commit
681133d10d
@ -516,8 +516,8 @@ static void handle_stream(demuxer_t *demuxer, AVFormatContext *avfc, int i)
|
||||
if (stream_type) {
|
||||
AVCodec *avc = avcodec_find_decoder(codec->codec_id);
|
||||
const char *codec_name = avc ? avc->name : "unknown";
|
||||
if (!avc && *stream_type == 's' && demuxer->s_streams[stream_id])
|
||||
codec_name = sh_sub_type2str(((sh_sub_t *)demuxer->s_streams[stream_id])->type);
|
||||
if (!avc && *stream_type == 's' && demuxer->s_streams[i])
|
||||
codec_name = sh_sub_type2str(((sh_sub_t *)demuxer->s_streams[i])->type);
|
||||
mp_msg(MSGT_DEMUX, MSGL_INFO, "[lavf] stream %d: %s (%s), -%cid %d",
|
||||
i, stream_type, codec_name, *stream_type, stream_id);
|
||||
if (lang && lang->value && *stream_type != 'v')
|
||||
|
Loading…
Reference in New Issue
Block a user