diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2011-07-29 12:55:01 +0200 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2011-07-30 09:51:23 -0700 |
commit | 42ba12888b9296977237f2bca0027d8b017011db (patch) | |
tree | 19bd1ed5c9129c3fd5a754fed0a314bd8206f912 /libavformat/segafilm.c | |
parent | 8a54bfe83f3387072fb2044096d073c973739ed1 (diff) | |
download | ffmpeg-42ba12888b9296977237f2bca0027d8b017011db.tar.gz |
Do not convert RGB buffer at once when stride does not fit exact samples.
When converting RGB format to RGB format with the same bits per sample,
unscaled path performs conversion on the whole buffer at once. For
non-multiple-of-16 BGR24 to RGB24 conversion it means that padding at the
end of line will be converted too. Since it may be of arbitrary length
(e.g. 8 bytes), operating on the whole buffer produces obviously wrong
results.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavformat/segafilm.c')
0 files changed, 0 insertions, 0 deletions