Re: [FFmpeg-devel] [PATCH 30/42] avcodec/vp9: Switch to ProgressFrames

2023-10-21 Thread Anton Khirnov
Quoting Andreas Rheinhardt (2023-09-19 21:57:22) > @@ -1605,7 +1590,8 @@ static int vp9_decode_frame(AVCodecContext *avctx, > AVFrame *frame, > f->flags &= ~AV_FRAME_FLAG_KEY; > f->pict_type = (s->s.h.keyframe || s->s.h.intraonly) ? AV_PICTURE_TYPE_I > : AV_PICTURE_TYPE_P; > > -

[FFmpeg-devel] [PATCH 30/42] avcodec/vp9: Switch to ProgressFrames

2023-09-19 Thread Andreas Rheinhardt
This already fixes a race in the vp9-encparams test. In this test, side data is added to the current frame after having been decoded (and therefore after ff_thread_finish_setup() has been called). Yet the update_thread_context callback called ff_thread_ref_frame() and therefore av_frame_ref() with