ref: a7c4209724632acfb39faa4dfc9027303deaa30c
parent: 040dc8c9450a8b7ebb100a38745654962ce3f076
parent: f225b1e69bf5ec8b14eddb710cce2284e38605f8
author: Tom Finegan <[email protected]>
date: Mon Nov 18 11:23:20 EST 2013
Merge "vpxdec: Include frame number when decode fails."
--- a/vpxdec.c
+++ b/vpxdec.c
@@ -897,11 +897,11 @@
if (vpx_codec_decode(&decoder, buf, bytes_in_buffer, NULL, 0)) {
const char *detail = vpx_codec_error_detail(&decoder);
- fprintf(stderr, "Failed to decode frame: %s\n",
- vpx_codec_error(&decoder));
+ warn("Failed to decode frame %d: %s",
+ frame_in, vpx_codec_error(&decoder));
if (detail)
- fprintf(stderr, " Additional information: %s\n", detail);
+ warn("Additional information: %s", detail);
goto fail;
}
@@ -922,8 +922,7 @@
dx_time += (unsigned int)vpx_usec_timer_elapsed(&timer);
if (vpx_codec_control(&decoder, VP8D_GET_FRAME_CORRUPTED, &corrupted)) {
- fprintf(stderr, "Failed VP8_GET_FRAME_CORRUPTED: %s\n",
- vpx_codec_error(&decoder));
+ warn("Failed VP8_GET_FRAME_CORRUPTED: %s", vpx_codec_error(&decoder));
goto fail;
}
frames_corrupted += corrupted;