提交 bd30a087 编写于 作者: J jp9000

win-dshow: Fix decoding issues from encoded devices

上级 0029bce7
......@@ -159,7 +159,7 @@ bool ffmpeg_decode_audio(struct ffmpeg_decode *decode,
if (ret < 0)
return false;
else if (ret == 0 || !got_frame)
else if (!got_frame)
return true;
for (size_t i = 0; i < MAX_AV_PLANES; i++)
......@@ -219,7 +219,7 @@ bool ffmpeg_decode_video(struct ffmpeg_decode *decode,
if (ret < 0)
return false;
else if (ret == 0 || !got_frame)
else if (!got_frame)
return true;
for (size_t i = 0; i < MAX_AV_PLANES; i++) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册