[vlc-commits] AVI: reverse the height only if it needs to be reversed

Jean-Baptiste Kempf git at videolan.org
Thu Mar 20 13:12:31 CET 2014


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Mar 20 13:11:54 2014 +0100| [b4086a1201f5669f32bf142ce845d3f69cc40901] | committer: Jean-Baptiste Kempf

AVI: reverse the height only if it needs to be reversed

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

 modules/demux/avi/avi.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c
index 7862711..10deb7c 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -553,7 +553,7 @@ static int Open( vlc_object_t * p_this )
                          p_vids->p_bih->biBitCount,
                          (float)tk->i_rate/(float)tk->i_scale );
 
-                if( p_vids->p_bih->biCompression == 0x00 )
+                if( p_vids->p_bih->biCompression == 0x00 && fmt.video.i_height <= 0 )
                 {
                     /* RGB DIB are coded from bottom to top */
                     fmt.video.i_height =



More information about the vlc-commits mailing list