diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-03-11 20:43:59 +0000 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-03-13 19:48:07 +0000 |
commit | 5a0e953c2465be9d449d5f523c3d3e2b886910b2 (patch) | |
tree | 6151a1ed76d62e26d9e67e1828b0a25aa00afc6d /libavcodec/mjpegdec.c | |
parent | 117b432748ca87de4cd0f09d9b1495545e264733 (diff) | |
download | ffmpeg-5a0e953c2465be9d449d5f523c3d3e2b886910b2.tar.gz |
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.
Diffstat (limited to 'libavcodec/mjpegdec.c')
-rw-r--r-- | libavcodec/mjpegdec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c index 3ef9e82aea..82cee48354 100644 --- a/libavcodec/mjpegdec.c +++ b/libavcodec/mjpegdec.c @@ -1723,6 +1723,7 @@ AVCodec ff_mjpeg_decoder = { .decode = ff_mjpeg_decode_frame, .capabilities = CODEC_CAP_DR1, .priv_class = &mjpegdec_class, + .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, }; AVCodec ff_thp_decoder = { @@ -1735,4 +1736,5 @@ AVCodec ff_thp_decoder = { .close = ff_mjpeg_decode_end, .decode = ff_mjpeg_decode_frame, .capabilities = CODEC_CAP_DR1, + .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, }; |