On 09/23/2011 06:35 PM, Jean First wrote:
> diff --git a/libavcodec/tiffenc.c b/libavcodec/tiffenc.c
> index a141a47..cd85b05 100644
> --- a/libavcodec/tiffenc.c
> +++ b/libavcodec/tiffenc.c
> @@ -211,12 +211,13 @@ static int encode_frame(AVCodecContext * avctx,
> unsigned char *buf,
> uint32_t *strip_offsets = NULL;
> int bytes_per_row;
> uint32_t res[2] = { 72, 1 }; // image resolution (72/1)
> - static const uint16_t bpp_tab[] = { 8, 8, 8, 8 };
> + static uint16_t bpp_tab[] = { 8, 8, 8, 8 };
making this static non-const is not thread-safe. you can just make it
non-static non-const.
-Justin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel