7. huhtikuuta 2012 15.53 Frode Tennebų <span dir="ltr"><<a href="mailto:frode@tennebo.com">frode@tennebo.com</a>></span> kirjoitti:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This is my first patch using git and my first patch to VLC.  Please be gentrel.<br></blockquote><div><br></div><div>You have some sample video for testings the issue?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
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.<br>
<br>
 -Frode<br>
<br>
---<br>
 modules/demux/avi/avi.c |    2 +-<br>
 1 files changed, 1 insertions(+), 1 deletions(-)<br>
<br>
diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c<br>
index f28a4ed..08659d9 100644<br>
--- a/modules/demux/avi/avi.c<br>
+++ b/modules/demux/avi/avi.c<br>
@@ -531,7 +531,7 @@ static int Open( vlc_object_t * p_this )<br>
                 fmt.video.i_frame_rate = tk->i_rate;<br>
                 fmt.video.i_frame_rate_base = tk->i_scale;<br>
                 fmt.i_extra =<br>
-                    __MIN( p_vids->p_bih->biSize - sizeof( VLC_BITMAPINFOHEADER ),<br>
+                    __MAX( p_vids->p_bih->biSize - sizeof( VLC_BITMAPINFOHEADER ),<br>
                            p_vids->i_chunk_size - sizeof(VLC_BITMAPINFOHEADER) );<br>
                 if( fmt.i_extra > 0 )<br>
                 {<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.7.5.4<br>
<br>
_______________________________________________<br>
vlc-devel mailing list<br>
To unsubscribe or modify your subscription options:<br>
<a href="http://mailman.videolan.org/listinfo/vlc-devel" target="_blank">http://mailman.videolan.org/listinfo/vlc-devel</a><br>
</font></span></blockquote></div><br>