mirror of https://code.videolan.org/videolan/vlc
decoder: update i_bitspersample
The field i_bytes_per_frame was updated, but not i_bitspersample, causing an inconsistency leading to a buffer overflow. Fixes #26930
This commit is contained in:
parent
04b535561d
commit
d7d0bbf8be
|
@ -405,6 +405,8 @@ static int aout_update_format( decoder_t *p_dec )
|
|||
|
||||
p_dec->fmt_out.audio.i_bytes_per_frame =
|
||||
p_owner->fmt.audio.i_bytes_per_frame;
|
||||
p_dec->fmt_out.audio.i_bitspersample =
|
||||
p_owner->fmt.audio.i_bitspersample;
|
||||
p_dec->fmt_out.audio.i_frame_length =
|
||||
p_owner->fmt.audio.i_frame_length;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue