[vlc-devel] [PATCH] Fix problem with black and/or random colours for paletted codecs, at least for MSRLE.
Kaarlo Räihä
kaarlo.raiha at gmail.com
Sat Apr 7 17:23:14 CEST 2012
7. huhtikuuta 2012 15.53 Frode Tennebø <frode at tennebo.com> kirjoitti:
> This is my first patch using git and my first patch to VLC. Please be
> gentrel.
>
You have some sample video for testings the issue?
>
> 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
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20120407/63916b17/attachment.html>
More information about the vlc-devel
mailing list