diff --git a/libavcodec/tiffenc.c b/libavcodec/tiffenc.c index e53ba6f034..f4556d5f65 100644 --- a/libavcodec/tiffenc.c +++ b/libavcodec/tiffenc.c @@ -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];