From 9efd4086f3e0fb6f1bdc5b547cee769644c1b120 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Stenac?= <zorglub@videolan.org> Date: Mon, 5 Dec 2005 10:25:34 +0000 Subject: [PATCH] Recognize RV codecs --- modules/demux/real.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/modules/demux/real.c b/modules/demux/real.c index 1c773f36e7e1..a9d846e52380 100644 --- a/modules/demux/real.c +++ b/modules/demux/real.c @@ -807,6 +807,20 @@ static int ReadCodecSpecificData( demux_t *p_demux, int i_len, int i_num ) { fmt.i_codec = VLC_FOURCC( 'R','V','1','3' ); } + else if( GetDWBE( &p_peek[30] ) == 0x20001000 || + GetDWBE( &p_peek[30] ) == 0x20100001 || + GetDWBE( &p_peek[30] ) == 0x20200002 ) + { + fmt.i_codec = VLC_FOURCC( 'R','V','2','0' ); + } + else if( GetDWBE( &p_peek[30] ) == 0x30202002 ) + { + fmt.i_codec = VLC_FOURCC( 'R','V','3','0' ); + } + else if( GetDWBE( &p_peek[30] ) == 0x40000000 ) + { + fmt.i_codec = VLC_FOURCC( 'R','V','4','0' ); + } msg_Dbg( p_demux, " - video %4.4s %dx%d", (char*)&fmt.i_codec, fmt.video.i_width, fmt.video.i_height ); -- GitLab