avutil/imgutils: only align the palette in av_image_copy_to_buffer() if there is...
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 13 Feb 2016 14:32:58 +0000 (15:32 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 13 Feb 2016 18:49:34 +0000 (19:49 +0100)
commit4c920ce777a1904202952ea3010fdfb99e002ad3
tree065fba108b82ac14a4a1347ee875b6177112a6e2
parent5307adadeb220db14418bf4af1e45c4b83a53542
avutil/imgutils: only align the palette in av_image_copy_to_buffer() if there is enough space

This allows disabling the alignment by using a compact buffer

Reviewed-by: Stefano Sabatini <stefasab@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavutil/imgutils.c
libavutil/version.h