avcodec/ylc: thread safe initialization is possible with this codec
authorPaul B Mahol <onemda@gmail.com>
Mon, 26 Dec 2016 19:28:40 +0000 (20:28 +0100)
committerPaul B Mahol <onemda@gmail.com>
Mon, 26 Dec 2016 19:28:40 +0000 (20:28 +0100)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/ylc.c

index 3230c56..02162a3 100644 (file)
@@ -494,4 +494,5 @@ AVCodec ff_ylc_decoder = {
     .close          = decode_end,
     .decode         = decode_frame,
     .capabilities   = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS,
     .close          = decode_end,
     .decode         = decode_frame,
     .capabilities   = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS,
+    .caps_internal  = FF_CODEC_CAP_INIT_THREADSAFE,
 };
 };