[MPlayer-cvslog] r33664 - trunk/libmpdemux/demux_lavf.c
reimar
subversion at mplayerhq.hu
Sun Jun 19 18:28:18 CEST 2011
Author: reimar
Date: Sun Jun 19 18:28:18 2011
New Revision: 33664
Log:
Fix printing of subtitle type, the wrong index was used to lookup the type.
Modified:
trunk/libmpdemux/demux_lavf.c
Modified: trunk/libmpdemux/demux_lavf.c
==============================================================================
--- trunk/libmpdemux/demux_lavf.c Sun Jun 19 18:11:42 2011 (r33663)
+++ trunk/libmpdemux/demux_lavf.c Sun Jun 19 18:28:18 2011 (r33664)
@@ -471,8 +471,8 @@ static void handle_stream(demuxer_t *dem
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')
mp_msg(MSGT_DEMUX, MSGL_INFO, ", -%clang %s", *stream_type, lang->value);
More information about the MPlayer-cvslog
mailing list