aboutsummaryrefslogtreecommitdiffstats
path: root/fftools/ffmpeg.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2025-04-29 23:20:49 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2025-05-16 01:37:35 +0200
commit839155324e008c582d916ce108513bd469e5bb0b (patch)
tree621727d040b69a5fcaac3320ae0006455f02f887 /fftools/ffmpeg.c
parent65015003f5c4b83a8202abfa7420ccf37cde6ce3 (diff)
downloadffmpeg-839155324e008c582d916ce108513bd469e5bb0b.tar.gz
avcodec/mpegvideo_dec: Move memcpy'ing ctx to mpeg4videodec.c
When the destination MpegEncContext in ff_mpeg_update_thread_context() is not initialized, the source MpegEncContext is simply copied over it before (potentially) calling ff_mpv_common_init(). This leads to data races when this code is executed which is why it should be replaced with only copying the necessary fields (this is for future commits). Given that the RV30 and RV40 decoders always call said function with an already initialized MpegEncContext (they use context_reinit in case of frame size changes), they don't need this ugly initialization (and are therefore race-free). This means that this code can be moved to the only decoder that actually needs it: MPEG-4. This commit does so. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'fftools/ffmpeg.c')
0 files changed, 0 insertions, 0 deletions