diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-09-12 15:47:42 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-09-15 13:08:37 +0200 |
commit | d2bc039501cdfe2067365ca1bf4be7201f071c05 (patch) | |
tree | 6e5b86aef80f94591c7e6f3574f90e560c711441 /libavcodec/h263dec.c | |
parent | 4f4dc0a1a29d3689ba8e73a08c13d4f2e152aad1 (diff) | |
download | ffmpeg-d2bc039501cdfe2067365ca1bf4be7201f071c05.tar.gz |
avcodec/error_resilience: Make applying decode_error_flags optional
Add a pointer parameter that if supplied will be used to return
the updated decode_error_flags. This will allow to fix several
races when using frame-threading; these resulted from AVFrame
that the earlier code updated concurrently being used as source
in an av_frame_ref() call in the decoder's update_thread_context.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/h263dec.c')
-rw-r--r-- | libavcodec/h263dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c index 52e51dd489..9f63f1a7cb 100644 --- a/libavcodec/h263dec.c +++ b/libavcodec/h263dec.c @@ -622,7 +622,7 @@ retry: av_assert1(s->bitstream_buffer_size == 0); frame_end: if (!s->studio_profile) - ff_er_frame_end(&s->er); + ff_er_frame_end(&s->er, NULL); if (avctx->hwaccel) { ret = FF_HW_SIMPLE_CALL(avctx, end_frame); |