diff options
author | Christophe Gisquet <[email protected]> | 2014-08-17 09:47:46 +0200 |
---|---|---|
committer | Michael Niedermayer <[email protected]> | 2014-08-18 09:49:01 +0200 |
commit | 4ddb3a6df0f6ad053c8455e074c1e6688b051272 (patch) | |
tree | 18784a98ada57123f637d8aa5ebc134f0e1d856b /doc/examples/scaling_video.c | |
parent | 853c1fb66835123c87178420816cff58c18548ed (diff) |
gifdec: use truncated width for image manipulation
Some files seem to have an off-by-one error. In most cases, it appears to
be on the image width. Therefore, if the decoded image doesn't fit in the
screen:
- If it is wider than the screen (and the lzw decoding buffer), reject it;
- Otherwise, decode the indicated amount, but only write a truncated amount
to the screen.
Fixes ticket #3538.
Signed-off-by: Michael Niedermayer <[email protected]>
Diffstat (limited to 'doc/examples/scaling_video.c')
0 files changed, 0 insertions, 0 deletions