From: James Zern Date: Thu, 18 Dec 2014 03:20:00 +0000 (-0800) Subject: vpxdec: ignore GET_FRAME_CORRUPTED error w/--keep-going X-Git-Tag: v1.4.0~318^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fcbf3e45ffdda1b74350fb8804bbbd24d3a9edd7;p=libvpx vpxdec: ignore GET_FRAME_CORRUPTED error w/--keep-going this function may return an error if no frame is available; --keep-going is meant to test decoder resilience, so simply warn in this case. Change-Id: I6e6aed3e78eca21cca80d7d8a06a1a244685ba29 --- 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;