]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/yop.c
avformat: Remove deprecated av_demuxer_open()
[ffmpeg] / libavcodec / yop.c
index 32cfea200a1368ae9ab2763e608a202cbb4206d7..8f8ed940ece524eb5e64601fa84f2a115bf1391b 100644 (file)
@@ -204,7 +204,7 @@ static int yop_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
         return AVERROR_INVALIDDATA;
     }
 
-    if ((ret = ff_reget_buffer(avctx, frame)) < 0)
+    if ((ret = ff_reget_buffer(avctx, frame, 0)) < 0)
         return ret;
 
     if (!avctx->frame_number)
@@ -274,4 +274,5 @@ AVCodec ff_yop_decoder = {
     .init           = yop_decode_init,
     .close          = yop_decode_close,
     .decode         = yop_decode_frame,
+    .caps_internal  = FF_CODEC_CAP_INIT_THREADSAFE,
 };