mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-10-24 02:09:03 +03:00
avcodec/tiffenc: handle all TIFF types on big-endian
Signed-off-by: Wu Jianhua <toqsxw@outlook.com>
This commit is contained in:
@@ -111,7 +111,7 @@ static void tnput(uint8_t **p, int n, const uint8_t *val, enum AVTiffDataType ty
|
||||
{
|
||||
int i;
|
||||
#if HAVE_BIGENDIAN
|
||||
flip ^= ((int[]) { 0, 0, 0, 1, 3, 3 })[type];
|
||||
flip ^= ((int[]) { 0, 0, 0, 1, 3, 3, 0, 0, 1, 3, 3, 3, 7, 3 })[type];
|
||||
#endif
|
||||
for (i = 0; i < n * type_sizes2[type]; i++)
|
||||
*(*p)++ = val[i ^ flip];
|
||||
|
||||
Reference in New Issue
Block a user