summaryrefslogtreecommitdiff
path: root/vpxdec.c
diff options
context:
space:
mode:
Diffstat (limited to 'vpxdec.c')
-rw-r--r--vpxdec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vpxdec.c b/vpxdec.c
index 30e27425b..310f4a059 100644
--- a/vpxdec.c
+++ b/vpxdec.c
@@ -908,7 +908,8 @@ int main_loop(int argc, const char **argv_) {
if (vpx_codec_control(&decoder, VP8D_GET_FRAME_CORRUPTED, &corrupted)) {
warn("Failed VP8_GET_FRAME_CORRUPTED: %s", vpx_codec_error(&decoder));
- goto fail;
+ if (!keep_going)
+ goto fail;
}
frames_corrupted += corrupted;