aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ref/fate/filter-amerge
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-09-29 14:21:36 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-10-05 14:38:11 +0200
commit54cf0482bd4d58ccb5c913cf1e68468d759d74ca (patch)
treedae82110523c654514d4821809356ca32a85c812 /tests/ref/fate/filter-amerge
parent02c19dfb8552cb40b02ff9c8d8d3c5e12d5c71e1 (diff)
downloadffmpeg-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/filter-amerge')
0 files changed, 0 insertions, 0 deletions