git.videolan.org Git - ffmpeg.git/rss log
FFmpeg git repo
Les articles publiés sur le site
-
avcodec/svq1enc : Allocate buffers during init
30 avril, par Andreas Rheinhardt -
avcodec/svq1enc : Remove always-false check
30 avril, par Andreas Rheinhardt -
avformat/hls : Split allowed_segment_extensions off allowed_extensions
29 avril, par Michael Niedermayer -
avformat/hls : Fix flash1.bogulus.cfd support
29 avril, par Michael Niedermayer -
avcodec/mpegvideo_dec : Move memcpy'ing ctx to mpeg4videodec.c
29 avril, par Andreas Rheinhardtavcodec/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>