Skip to content
Snippets Groups Projects
Commit 656a0f6d authored by François Cartegnie's avatar François Cartegnie :fingers_crossed: Committed by Steve Lhomme
Browse files

demux: avi: do not set up invalid bitsperpixel

UINT16_MAX is set and propagated from the bitmap header reader

refs #28661
parent b0c75254
No related branches found
No related tags found
1 merge request!5564[3.0] demux: avi: do not set up invalid bitsperpixel
Pipeline #480054 passed with stage
in 17 minutes and 9 seconds
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment