diff --git a/libavcodec/tiffenc.c b/libavcodec/tiffenc.c index 5b567aeec6..69f8e59f68 100644 --- a/libavcodec/tiffenc.c +++ b/libavcodec/tiffenc.c @@ -133,7 +133,7 @@ static void add_entry1(TiffEncoderContext * s, enum TiffTags tag, enum TiffTypes type, int val){ uint16_t w = val; uint32_t dw= val; - add_entry(s, tag, type, 1, type == TIFF_SHORT ? &w : &dw); + add_entry(s, tag, type, 1, type == TIFF_SHORT ? (void *)&w : (void *)&dw); } /**