Commit 95b4fba0 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* recognize subtitles streams in avi. Now to decode them. if anyone has ANY...

* recognize subtitles streams in avi. Now to decode them. if anyone has ANY info on how this works :)
parent b6d10946
......@@ -457,6 +457,16 @@ static int Open( vlc_object_t * p_this )
(unsigned int)(-(int)p_vids->p_bih->biHeight);
}
break;
case( AVIFOURCC_txts):
tk->i_cat = SPU_ES;
tk->i_codec = VLC_FOURCC( 's', 'u', 'b', 't' );
msg_Dbg( p_demux, "stream[%d] subtitles", i );
es_format_Init( &fmt, SPU_ES, tk->i_codec );
break;
case( AVIFOURCC_mids):
msg_Dbg( p_demux, "stream[%d] midi is UNSUPPORTED", i );
default:
msg_Warn( p_demux, "stream[%d] unknown type", i );
free( tk );
......
......@@ -259,6 +259,8 @@ void AVI_ChunkFreeRoot( stream_t *, avi_chunk_t *p_chk );
#define AVIFOURCC_rec VLC_FOURCC('r','e','c',' ')
#define AVIFOURCC_auds VLC_FOURCC('a','u','d','s')
#define AVIFOURCC_vids VLC_FOURCC('v','i','d','s')
#define AVIFOURCC_txts VLC_FOURCC('t','x','t','s')
#define AVIFOURCC_mids VLC_FOURCC('m','i','d','s')
#define AVIFOURCC_IARL VLC_FOURCC('I','A','R','L')
#define AVIFOURCC_IART VLC_FOURCC('I','A','R','T')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment