Quoting Moritz Barsnick (2020-08-10 23:14:59) > On Tue, Aug 04, 2020 at 13:59:42 +0200, Anton Khirnov wrote: > > --- a/fftools/ffmpeg.c > > +++ b/fftools/ffmpeg.c > > @@ -2883,7 +2883,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 < 59 > > ist->dec_ctx->thread_safe_callbacks = 1; > > +#endif > > Wouldn't this be > #if FF_API_THREAD_SAFE_CALLBACKS > ? > > Seems more logical. > > (I can't find more than one use of either FF_API_* or LIBAV*_VERSION_* > in ffmpeg.c.)
FF_API_* macros are not a part of the public API (since they can be removed whenever), so user applications are not allowed to use them. -- Anton Khirnov _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".