提交 43957286 编写于 作者: J jp9000

deps/media-playback: Fix hw decode dropping last few frames

Fixes a bug where hardware frames would not transfer to RAM for the last
few frames of a video.  The 'ret' variable can be 0 even though there
are still frames ready.
上级 6943d9a9
......@@ -310,7 +310,7 @@ static int decode_packet(struct mp_decode *d, int *got_frame)
#endif
#ifdef USE_NEW_HARDWARE_CODEC_METHOD
if (*got_frame && ret && d->hw) {
if (*got_frame && d->hw) {
if (d->hw_frame->format != d->hw_format) {
d->frame = d->hw_frame;
return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册