1
0
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:
Wu Jianhua
2026-08-27 02:10:27 +08:00
committed by jianhuaw
parent d411d9e752
commit ecd6fcb5ab

View File

@@ -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];