[vlc-commits] Fix problem with black and/or random colours for paletted codecs, like MSRLE.

Frode Tennebø git at videolan.org
Sun Apr 8 19:25:13 CEST 2012


vlc | branch: master | Frode Tennebø <frode at tennebo.com> | Sat Apr  7 14:53:21 2012 +0200| [7f99f183c055dbb657a896adb568687b6264df44] | committer: Jean-Baptiste Kempf

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

Shoulc close #5952

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7f99f183c055dbb657a896adb568687b6264df44
---

 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 )
                 {



More information about the vlc-commits mailing list