Commit 7f99f183 authored by Frode Tennebø's avatar Frode Tennebø Committed by Jean-Baptiste Kempf

Fix problem with black and/or random colours for paletted codecs, like MSRLE.

Shoulc close #5952
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent ab01c5b5
...@@ -531,7 +531,7 @@ static int Open( vlc_object_t * p_this ) ...@@ -531,7 +531,7 @@ static int Open( vlc_object_t * p_this )
fmt.video.i_frame_rate = tk->i_rate; fmt.video.i_frame_rate = tk->i_rate;
fmt.video.i_frame_rate_base = tk->i_scale; fmt.video.i_frame_rate_base = tk->i_scale;
fmt.i_extra = fmt.i_extra =
__MIN( p_vids->p_bih->biSize - sizeof( VLC_BITMAPINFOHEADER ), __MAX( p_vids->p_bih->biSize - sizeof( VLC_BITMAPINFOHEADER ),
p_vids->i_chunk_size - sizeof(VLC_BITMAPINFOHEADER) ); p_vids->i_chunk_size - sizeof(VLC_BITMAPINFOHEADER) );
if( fmt.i_extra > 0 ) if( fmt.i_extra > 0 )
{ {
......
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