]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/pnmenc: Mark encoders as init-threadsafe
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 27 Nov 2020 13:33:22 +0000 (14:33 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sat, 28 Nov 2020 23:38:01 +0000 (00:38 +0100)
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/pnmenc.c

index ba9478d0da517c1fc7b56b917138e4b8e039c9bd..7bb42c5a7ad018ce47f680014bd8efa436777f10 100644 (file)
@@ -142,6 +142,7 @@ AVCodec ff_pgm_encoder = {
     .pix_fmts       = (const enum AVPixelFormat[]){
         AV_PIX_FMT_GRAY8, AV_PIX_FMT_GRAY16BE, AV_PIX_FMT_NONE
     },
+    .caps_internal  = FF_CODEC_CAP_INIT_THREADSAFE,
 };
 #endif
 
@@ -156,6 +157,7 @@ AVCodec ff_pgmyuv_encoder = {
     .pix_fmts       = (const enum AVPixelFormat[]){
         AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV420P16BE, AV_PIX_FMT_NONE
     },
+    .caps_internal  = FF_CODEC_CAP_INIT_THREADSAFE,
 };
 #endif
 
@@ -170,6 +172,7 @@ AVCodec ff_ppm_encoder = {
     .pix_fmts       = (const enum AVPixelFormat[]){
         AV_PIX_FMT_RGB24, AV_PIX_FMT_RGB48BE, AV_PIX_FMT_NONE
     },
+    .caps_internal  = FF_CODEC_CAP_INIT_THREADSAFE,
 };
 #endif
 
@@ -183,5 +186,6 @@ AVCodec ff_pbm_encoder = {
     .encode2        = pnm_encode_frame,
     .pix_fmts       = (const enum AVPixelFormat[]){ AV_PIX_FMT_MONOWHITE,
                                                   AV_PIX_FMT_NONE },
+    .caps_internal  = FF_CODEC_CAP_INIT_THREADSAFE,
 };
 #endif