[vlc-commits] [Git][videolan/vlc][3.0.x] demux: avi: do not set up invalid bitsperpixel
Steve Lhomme (@robUx4)
gitlab at videolan.org
Wed Jun 12 12:01:54 UTC 2024
Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC
Commits:
656a0f6d by François Cartegnie at 2024-06-12T11:47:57+00:00
demux: avi: do not set up invalid bitsperpixel
UINT16_MAX is set and propagated from the bitmap header reader
refs #28661
- - - - -
1 changed file:
- modules/demux/avi/avi.c
Changes:
=====================================
modules/demux/avi/avi.c
=====================================
@@ -737,7 +737,8 @@ static int Open( vlc_object_t * p_this )
tk->fmt.video.i_width = p_bih->biWidth;
tk->fmt.video.i_visible_height =
tk->fmt.video.i_height = p_bih->biHeight;
- tk->fmt.video.i_bits_per_pixel = p_bih->biBitCount;
+ if( p_bih->biBitCount <= 32 )
+ tk->fmt.video.i_bits_per_pixel = p_bih->biBitCount;
tk->fmt.video.i_frame_rate = tk->i_rate;
tk->fmt.video.i_frame_rate_base = tk->i_scale;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/656a0f6dce1dce14d27e4dd03cef0e7778d2e136
--
This project does not include diff previews in email notifications.
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/656a0f6dce1dce14d27e4dd03cef0e7778d2e136
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list