UINT16_MAX is set and propagated from the bitmap header reader
refs #28661
Gbp-Pq: Name 0005-demux-avi-do-not-set-up-invalid-bitsperpixel.patch
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;