[FFmpeg-devel] [PATCH 10/10] avcodec/avcodec: Remove outdated comment

Marvin Scholz epirat07 at gmail.com
Thu Jan 6 00:21:14 EET 2022



On 5 Jan 2022, at 22:56, Andreas Rheinhardt wrote:

> avcodec_open2() is supposed to be thread-safe (those codecs
> whose init functions are not thread-safe are guarded
> by a global lock).
>

Maybe it would be better to note since which version this is
the case, or at least mention it in the api changelog?

> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> ---
>  libavcodec/avcodec.h | 2 --
>  1 file changed, 2 deletions(-)
>
> diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
> index 7ee8bc2b7c..ec1a0566a4 100644
> --- a/libavcodec/avcodec.h
> +++ b/libavcodec/avcodec.h
> @@ -2384,8 +2384,6 @@ int avcodec_parameters_to_context(AVCodecContext 
> *codec,
>   * avcodec_find_decoder() and avcodec_find_encoder() provide an easy 
> way for
>   * retrieving a codec.
>   *
> - * @warning This function is not thread safe!
> - *
>   * @note Always call this function before using decoding routines 
> (such as
>   * @ref avcodec_receive_frame()).
>   *
> -- 
> 2.32.0
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-devel mailing list