]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/libdavs2.c
avformat/avformat, utils: Make av_find_best_stream const-correct
[ffmpeg] / libavcodec / libdavs2.c
index 218f3ec2396baa6ed2a203296e2787a792558dbf..0f18353c93eb65875c0e03207eb37475d123312a 100644 (file)
@@ -23,6 +23,7 @@
  */
 
 #include "avcodec.h"
+#include "internal.h"
 #include "davs2.h"
 
 typedef struct DAVS2Context {
@@ -221,7 +222,8 @@ AVCodec ff_libdavs2_decoder = {
     .close          = davs2_end,
     .decode         = davs2_decode_frame,
     .flush          = davs2_flush,
-    .capabilities   =  AV_CODEC_CAP_DELAY | AV_CODEC_CAP_AUTO_THREADS,
+    .capabilities   =  AV_CODEC_CAP_DELAY | AV_CODEC_CAP_OTHER_THREADS,
+    .caps_internal  = FF_CODEC_CAP_AUTO_THREADS,
     .pix_fmts       = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV420P,
                                                      AV_PIX_FMT_NONE },
     .wrapper_name   = "libdavs2",