[vlc-devel] [PATCH] Fix problem with black and/or random colours for paletted codecs, at least for MSRLE.
Frode Tennebø
frode at tennebo.com
Sat Apr 7 14:53:21 CEST 2012
This is my first patch using git and my first patch to VLC. Please be gentrel.
I have made the patch as small as possible this time. However, I believe the current code is a bit redundant according to the avi spec. I'll quality assure that before committing a new-and-improved patch.
-Frode
---
modules/demux/avi/avi.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c
index f28a4ed..08659d9 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -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_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 )
{
--
1.7.5.4
More information about the vlc-devel
mailing list