avcodec/qtrleenc: Check that width is a multiple of 4 for grayscale
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 11 Jun 2014 02:02:53 +0000 (04:02 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 11 Jun 2014 02:02:53 +0000 (04:02 +0200)
commitc69defd4d014e27cbcf207fe6facaebb02ba1285
treefa5ac69732bdd3c91da05431897742347b027da5
parent43d995e865f77adef1573b158452982a56814908
avcodec/qtrleenc: Check that width is a multiple of 4 for grayscale

grayscale is coded as 4 pixels at a time, the encoder lacks support
for the case where width%4 != 0, and will simply encode less data
leaving random data after decoding at the right side

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/qtrleenc.c