diff options
author | Michael Niedermayer <[email protected]> | 2023-08-07 02:33:24 +0200 |
---|---|---|
committer | Michael Niedermayer <[email protected]> | 2023-08-23 22:52:26 +0200 |
commit | 5f5a1ccd04acc74e31e1e4fe7e297b3f589425b3 (patch) | |
tree | 86001e138fbb226091cfbc0bc2ec1694f2129f50 /libavutil/tests/pixelutils.c | |
parent | 1a81a40de265df6c5e4e6bb924c5f3c219904f41 (diff) |
avcodec/wavarc: Check that nb_samples is not negative
It is currently probably not possible for it to be negative as
the needed 2Mb input buf size is not achievable. But it is more
robust to check for it too.
If it would become negative than code like
s->samples[0][n] = s->samples[0][s->nb_samples + n];
would crash
Signed-off-by: Michael Niedermayer <[email protected]>
Diffstat (limited to 'libavutil/tests/pixelutils.c')
0 files changed, 0 insertions, 0 deletions