Mercurial > mplayer.hg
comparison libmpdemux/demux_lavf.c @ 33576:c97ec47d1bbb
Fix printing of subtitle type, the wrong index was used to lookup the type.
author | reimar |
---|---|
date | Sun, 19 Jun 2011 16:28:18 +0000 |
parents | 3552dac79b1a |
children | a761fc66ddc7 |
comparison
equal
deleted
inserted
replaced
33575:052789583781 | 33576:c97ec47d1bbb |
---|---|
469 st->discard= AVDISCARD_ALL; | 469 st->discard= AVDISCARD_ALL; |
470 } | 470 } |
471 if (stream_type) { | 471 if (stream_type) { |
472 AVCodec *avc = avcodec_find_decoder(codec->codec_id); | 472 AVCodec *avc = avcodec_find_decoder(codec->codec_id); |
473 const char *codec_name = avc ? avc->name : "unknown"; | 473 const char *codec_name = avc ? avc->name : "unknown"; |
474 if (!avc && *stream_type == 's' && demuxer->s_streams[stream_id]) | 474 if (!avc && *stream_type == 's' && demuxer->s_streams[i]) |
475 codec_name = sh_sub_type2str(((sh_sub_t *)demuxer->s_streams[stream_id])->type); | 475 codec_name = sh_sub_type2str(((sh_sub_t *)demuxer->s_streams[i])->type); |
476 mp_msg(MSGT_DEMUX, MSGL_INFO, "[lavf] stream %d: %s (%s), -%cid %d", i, stream_type, codec_name, *stream_type, stream_id); | 476 mp_msg(MSGT_DEMUX, MSGL_INFO, "[lavf] stream %d: %s (%s), -%cid %d", i, stream_type, codec_name, *stream_type, stream_id); |
477 if (lang && lang->value && *stream_type != 'v') | 477 if (lang && lang->value && *stream_type != 'v') |
478 mp_msg(MSGT_DEMUX, MSGL_INFO, ", -%clang %s", *stream_type, lang->value); | 478 mp_msg(MSGT_DEMUX, MSGL_INFO, ", -%clang %s", *stream_type, lang->value); |
479 if (title && title->value) | 479 if (title && title->value) |
480 mp_msg(MSGT_DEMUX, MSGL_INFO, ", %s", title->value); | 480 mp_msg(MSGT_DEMUX, MSGL_INFO, ", %s", title->value); |