Index: source/libvpx/vpxdec.c |
=================================================================== |
--- source/libvpx/vpxdec.c (revision 293588) |
+++ source/libvpx/vpxdec.c (working copy) |
@@ -131,7 +131,7 @@ |
#endif |
#if CONFIG_LIBYUV |
-static INLINE int vpx_image_scale(vpx_image_t *src, vpx_image_t *dst, |
+static INLINE int libyuv_scale(vpx_image_t *src, vpx_image_t *dst, |
FilterModeEnum mode) { |
#if CONFIG_VP9 && CONFIG_VP9_HIGHBITDEPTH |
if (src->fmt == VPX_IMG_FMT_I42016) { |
@@ -908,7 +908,8 @@ |
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; |
@@ -948,7 +949,7 @@ |
if (img->d_w != scaled_img->d_w || img->d_h != scaled_img->d_h) { |
#if CONFIG_LIBYUV |
- vpx_image_scale(img, scaled_img, kFilterBox); |
+ libyuv_scale(img, scaled_img, kFilterBox); |
img = scaled_img; |
#else |
fprintf(stderr, "Failed to scale output frame: %s.\n" |