Commit 227987aa authored by Laurent Aimar's avatar Laurent Aimar

* avi: hack to let few xvid files working.

 (set codec to xvid if the hanlder is xvid).
parent b6e4d2a1
...@@ -406,6 +406,10 @@ static int Open( vlc_object_t * p_this ) ...@@ -406,6 +406,10 @@ static int Open( vlc_object_t * p_this )
else else
{ {
es_format_Init( &fmt, VIDEO_ES, p_vids->p_bih->biCompression ); es_format_Init( &fmt, VIDEO_ES, p_vids->p_bih->biCompression );
if( tk->i_codec == FOURCC_mp4v && !strncasecmp( (char*)&p_strh->i_handler, "XVID", 4 ) )
{
fmt.i_codec = VLC_FOURCC( 'X', 'V', 'I', 'D' );
}
} }
tk->i_samplesize = 0; tk->i_samplesize = 0;
fmt.video.i_width = p_vids->p_bih->biWidth; fmt.video.i_width = p_vids->p_bih->biWidth;
......
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