From 5a0e953c2465be9d449d5f523c3d3e2b886910b2 Mon Sep 17 00:00:00 2001 From: Vittorio Giovara Date: Wed, 11 Mar 2015 20:43:59 +0000 Subject: mjpeg: Mark decoder family as thread safe No global variables are used and the VLC tables are allocated without static elements. This will allow using a JPEG decoding context within other decoders. --- libavcodec/jpeglsdec.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavcodec/jpeglsdec.c') diff --git a/libavcodec/jpeglsdec.c b/libavcodec/jpeglsdec.c index df72ca338f..9f7735ecec 100644 --- a/libavcodec/jpeglsdec.c +++ b/libavcodec/jpeglsdec.c @@ -28,6 +28,7 @@ #include "avcodec.h" #include "get_bits.h" #include "golomb.h" +#include "internal.h" #include "mathops.h" #include "mjpeg.h" #include "mjpegdec.h" @@ -396,4 +397,5 @@ AVCodec ff_jpegls_decoder = { .close = ff_mjpeg_decode_end, .decode = ff_mjpeg_decode_frame, .capabilities = CODEC_CAP_DR1, + .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, }; -- cgit v1.2.3