[FFmpeg-devel] [PATCH 18/39] avcodec/motion_est, mpegvideo: Make pointers to static storage const

Michael Niedermayer michael at niedermayer.cc
Fri Dec 11 00:33:39 EET 2020


On Thu, Dec 10, 2020 at 12:16:36PM +0100, Andreas Rheinhardt wrote:
> Modifying static storage must not happen because of multithreading
> (except initialization of course), so add const to the pointed-to type
> for pointers that point to static storage.
> 
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
> ---
>  libavcodec/motion_est.c          | 12 ++++++------
>  libavcodec/motion_est.h          |  4 ++--
>  libavcodec/motion_est_template.c |  2 +-
>  libavcodec/mpegvideo.h           |  2 +-
>  4 files changed, 10 insertions(+), 10 deletions(-)

ok

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The misfortune of the wise is better than the prosperity of the fool.
-- Epicurus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20201210/4f7f6370/attachment.sig>


More information about the ffmpeg-devel mailing list