]> git.sesse.net Git - ffmpeg/blobdiff - fftools/ffmpeg.c
avcodec: deprecate thread_safe_callbacks
[ffmpeg] / fftools / ffmpeg.c
index 7a2725875810036e13267906081098681c0704f4..80f436eab3d088e0b7e6f93869c928503bb906d6 100644 (file)
@@ -2927,7 +2927,9 @@ static int init_input_stream(int ist_index, char *error, int error_len)
         ist->dec_ctx->opaque                = ist;
         ist->dec_ctx->get_format            = get_format;
         ist->dec_ctx->get_buffer2           = get_buffer;
+#if LIBAVCODEC_VERSION_MAJOR < 60
         ist->dec_ctx->thread_safe_callbacks = 1;
+#endif
 
         av_opt_set_int(ist->dec_ctx, "refcounted_frames", 1, 0);
         if (ist->dec_ctx->codec_id == AV_CODEC_ID_DVB_SUBTITLE &&