Commit 72d830b5 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>
(cherry picked from commit 7f99f183c055dbb657a896adb568687b6264df44)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent e0b24bc5
......@@ -530,7 +530,7 @@ static int Open( vlc_object_t * p_this )
fmt.video.i_frame_rate = tk->i_rate;
fmt.video.i_frame_rate_base = tk->i_scale;
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) );
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