Commit 0674820a 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.

Should close #5952
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit 7f99f183c055dbb657a896adb568687b6264df44)
parent 61ed10ec
......@@ -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( BITMAPINFOHEADER ),
__MAX( p_vids->p_bih->biSize - sizeof( BITMAPINFOHEADER ),
p_vids->i_chunk_size - sizeof(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