Re: [FFmpeg-devel] [PATCH 17/39] avcodec/me_cmp: Remove ff_check_alignment()

2021-01-18 Thread Anton Khirnov
Quoting Andreas Rheinhardt (2020-12-10 12:16:35) > The usage of a static variable presents a potential for data races and > means that this function can't be used in init functions of codecs with > FF_CODEC_CAP_INIT_THREADSAFE (unless of course one presumes that > everything is alright in which cas

[FFmpeg-devel] [PATCH 17/39] avcodec/me_cmp: Remove ff_check_alignment()

2020-12-10 Thread Andreas Rheinhardt
The usage of a static variable presents a potential for data races and means that this function can't be used in init functions of codecs with FF_CODEC_CAP_INIT_THREADSAFE (unless of course one presumes that everything is alright in which case the error is not triggered; but then the whole function