win-dshow: Fix decoding issues from encoded devices

This commit is contained in:
jp9000
2018-01-22 14:41:00 -08:00
parent 0029bce7ae
commit bd30a0874d

View File

@@ -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++) {