[vlc-commits] demux: avi: fix conversion
Francois Cartegnie
git at videolan.org
Mon Oct 14 21:10:37 CEST 2019
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Oct 14 20:37:21 2019 +0200| [52ce937c7faf4c348f740157b2ed880cd79b680a] | committer: Francois Cartegnie
demux: avi: fix conversion
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=52ce937c7faf4c348f740157b2ed880cd79b680a
---
modules/demux/avi/bitmapinfoheader.h | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/modules/demux/avi/bitmapinfoheader.h b/modules/demux/avi/bitmapinfoheader.h
index 8e77af69e1..5dd14533aa 100644
--- a/modules/demux/avi/bitmapinfoheader.h
+++ b/modules/demux/avi/bitmapinfoheader.h
@@ -209,8 +209,7 @@ 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_height =
- (unsigned int)(-(int)p_bih->biHeight);
+ fmt->video.i_height = -1 * p_bih->biHeight;
return VLC_SUCCESS;
}
More information about the vlc-commits
mailing list