Commit d80b9ea1 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '0e830094'

* commit '0e830094':
  samplefmt: avoid integer overflow in av_samples_get_buffer_size()
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents bd949217 0e830094
......@@ -135,6 +135,8 @@ int av_samples_get_buffer_size(int *linesize, int nb_channels, int nb_samples,
/* auto-select alignment if not specified */
if (!align) {
if (nb_samples > INT_MAX - 31)
return AVERROR(EINVAL);
align = 1;
nb_samples = FFALIGN(nb_samples, 32);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment