[FFmpeg-devel] [PATCH 2/2] avcdec: move setting decode_error_flags from h264 decoder to error concealment code

James Almer jamrial at gmail.com
Mon May 31 16:45:00 EEST 2021


On 5/31/2021 6:02 AM, Anton Khirnov wrote:
> Quoting Michael Niedermayer (2021-05-24 22:43:55)
>> This should fix some minor race condition
>> Untested (no testcase, the flag is not tested by fate)
> 
> How will this fix the race? It is still modifying a shared struct.

s->cur_pic.f->decode_error_flags is already being set in 
ff_er_frame_end(), and valgrind hasn't complained about it, so it may be 
safe to touch it here.


More information about the ffmpeg-devel mailing list