[vlc-commits] demux: avi: fix playback of flipped rgb (refs #22915)

Francois Cartegnie git at videolan.org
Mon Oct 14 21:10:38 CEST 2019


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Oct 14 21:00:21 2019 +0200| [99a193f6d9639220e5bcebb23585d7e26651a2c4] | committer: Francois Cartegnie

demux: avi: fix playback of flipped rgb (refs #22915)

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

 modules/demux/avi/bitmapinfoheader.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/demux/avi/bitmapinfoheader.h b/modules/demux/avi/bitmapinfoheader.h
index 5dd14533aa..1694e67b68 100644
--- a/modules/demux/avi/bitmapinfoheader.h
+++ b/modules/demux/avi/bitmapinfoheader.h
@@ -209,7 +209,10 @@ static inline int ParseBitmapInfoHeader( VLC_BITMAPINFOHEADER *p_bih, size_t i_b
      * height sign is, and compressed must also not use flip, so positive
      * values only here */
     if ( fmt->video.i_height > INT32_MAX )
+    {
+        fmt->video.i_visible_height =
         fmt->video.i_height = -1 * p_bih->biHeight;
+    }
 
     return VLC_SUCCESS;
 }



More information about the vlc-commits mailing list