You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
vp9: fix show-existing-frames for multi-threading.
This also fixes intra-only MT failures (it was the same bug), see trac 4526 and 4527. Tested-by: James Almer <jamrial@gmail.com> Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
committed by
Michael Niedermayer
parent
39fbb27ec3
commit
5935513c0e
@@ -3767,6 +3767,13 @@ static int vp9_decode_frame(AVCodecContext *ctx, void *frame,
|
|||||||
return res;
|
return res;
|
||||||
((AVFrame *)frame)->pkt_pts = pkt->pts;
|
((AVFrame *)frame)->pkt_pts = pkt->pts;
|
||||||
((AVFrame *)frame)->pkt_dts = pkt->dts;
|
((AVFrame *)frame)->pkt_dts = pkt->dts;
|
||||||
|
for (i = 0; i < 8; i++) {
|
||||||
|
if (s->next_refs[i].f->data[0])
|
||||||
|
ff_thread_release_buffer(ctx, &s->next_refs[i]);
|
||||||
|
if (s->refs[i].f->data[0] &&
|
||||||
|
(res = ff_thread_ref_frame(&s->next_refs[i], &s->refs[i])) < 0)
|
||||||
|
return res;
|
||||||
|
}
|
||||||
*got_frame = 1;
|
*got_frame = 1;
|
||||||
return pkt->size;
|
return pkt->size;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user