Index: source/libvpx/vpxenc.c |
=================================================================== |
--- source/libvpx/vpxenc.c (revision 177019) |
+++ source/libvpx/vpxenc.c (working copy) |
@@ -23,7 +23,9 @@ |
#include <limits.h> |
#include <assert.h> |
#include "vpx/vpx_encoder.h" |
+#if CONFIG_DECODERS |
#include "vpx/vpx_decoder.h" |
+#endif |
#if USE_POSIX_MMAP |
#include <sys/types.h> |
#include <sys/stat.h> |
@@ -2174,6 +2176,7 @@ |
ctx_exit_on_error(&stream->encoder, "Failed to control codec"); |
} |
+#if CONFIG_DECODERS |
if (global->test_decode) { |
int width, height; |
@@ -2186,6 +2189,7 @@ |
stream->ref_enc.frame_type = VP8_LAST_FRAME; |
stream->ref_dec.frame_type = VP8_LAST_FRAME; |
} |
+#endif |
} |
@@ -2278,16 +2282,19 @@ |
stream->nbytes += pkt->data.raw.sz; |
*got_data = 1; |
+#if CONFIG_DECODERS |
if (global->test_decode) { |
vpx_codec_decode(&stream->decoder, pkt->data.frame.buf, |
pkt->data.frame.sz, NULL, 0); |
ctx_exit_on_error(&stream->decoder, "Failed to decode frame"); |
} |
+#endif |
break; |
case VPX_CODEC_STATS_PKT: |
stream->frames_out++; |
- fprintf(stderr, " %6luS", |
- (unsigned long)pkt->data.twopass_stats.sz); |
+ if (!global->quiet) |
+ fprintf(stderr, " %6luS", |
+ (unsigned long)pkt->data.twopass_stats.sz); |
stats_write(&stream->stats, |
pkt->data.twopass_stats.buf, |
pkt->data.twopass_stats.sz); |