]> git.sesse.net Git - vlc/commitdiff
dshow: remove negative video height, signed overflow (fixes #10998)
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 20 Oct 2014 15:06:57 +0000 (18:06 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 20 Oct 2014 15:09:09 +0000 (18:09 +0300)
modules/access/dshow/dshow.cpp

index 0e21fe45edf733b7b887af0834fe8dca57436947..107edd508d3a8916bf6b8349a10efc6d33611c36 100644 (file)
@@ -732,7 +732,7 @@ static int DemuxOpen( vlc_object_t *p_this )
             if( !p_stream->header.video.bmiHeader.biCompression )
             {
                 /* RGB DIB are coded from bottom to top */
-                fmt.video.i_height = (unsigned int)(-(int)fmt.video.i_height);
+                fmt.video.orientation = ORIENT_BOTTOM_LEFT;
             }
 
             /* Setup rgb mask for RGB formats */