diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-09-29 14:21:36 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-10-05 14:38:11 +0200 |
commit | 54cf0482bd4d58ccb5c913cf1e68468d759d74ca (patch) | |
tree | dae82110523c654514d4821809356ca32a85c812 /tests/ref/fate/dca-xll_xch_61_24_48_768 | |
parent | 02c19dfb8552cb40b02ff9c8d8d3c5e12d5c71e1 (diff) | |
download | ffmpeg-54cf0482bd4d58ccb5c913cf1e68468d759d74ca.tar.gz |
avcodec/sgidec: Support negative linesizes
The earlier code used "p->data[0] + p->linesize[0] * s->height" with
the latter being unsigned, which gives the wrong value for negative
linesizes. There is also a not so obvious problem with this:
In case of negative linesizes, the last line is the start of
the allocated buffer, so using the line after the last line
would involve undefined pointer arithmetic. So don't do it.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'tests/ref/fate/dca-xll_xch_61_24_48_768')
0 files changed, 0 insertions, 0 deletions