From 69544cfe40c6e89bccdfffc37688e1f1016bd457 Mon Sep 17 00:00:00 2001 From: Paul Wilkins Date: Wed, 14 May 2014 13:07:28 +0100 Subject: [PATCH] Clear unused parameter warning. Caused by a parameter which is only used under #if CONFIG_VP9_POSTPROC. Change-Id: I2c0979d215d45f56da1a38bb13aa214bde52a640 --- vp9/encoder/vp9_encoder.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vp9/encoder/vp9_encoder.c b/vp9/encoder/vp9_encoder.c index 64747638c..7ab4f2564 100644 --- a/vp9/encoder/vp9_encoder.c +++ b/vp9/encoder/vp9_encoder.c @@ -2779,6 +2779,9 @@ int vp9_get_compressed_data(VP9_COMP *cpi, unsigned int *frame_flags, int vp9_get_preview_raw_frame(VP9_COMP *cpi, YV12_BUFFER_CONFIG *dest, vp9_ppflags_t *flags) { VP9_COMMON *cm = &cpi->common; +#if !CONFIG_VP9_POSTPROC + (void)flags; +#endif if (!cm->show_frame) { return -1; @@ -2787,7 +2790,6 @@ int vp9_get_preview_raw_frame(VP9_COMP *cpi, YV12_BUFFER_CONFIG *dest, #if CONFIG_VP9_POSTPROC ret = vp9_post_proc_frame(cm, dest, flags); #else - if (cm->frame_to_show) { *dest = *cm->frame_to_show; dest->y_width = cm->width; @@ -2798,7 +2800,6 @@ int vp9_get_preview_raw_frame(VP9_COMP *cpi, YV12_BUFFER_CONFIG *dest, } else { ret = -1; } - #endif // !CONFIG_VP9_POSTPROC vp9_clear_system_state(); return ret;