From 3e2562bdb9d6da989edfa6dbe1d80836f95c2fdd Mon Sep 17 00:00:00 2001 From: Johann Date: Mon, 4 Nov 2019 16:52:21 -0600 Subject: [PATCH] remove unused Pass1Encode parameters BUG=webm:1612 Change-Id: Ifbe5bbba706311057bfc5d5fa9b63e57ac56e398 --- vp8/encoder/onyx_if.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/vp8/encoder/onyx_if.c b/vp8/encoder/onyx_if.c index cd0c2e1..29c8cc6 100644 --- a/vp8/encoder/onyx_if.c +++ b/vp8/encoder/onyx_if.c @@ -2769,13 +2769,8 @@ static int decide_key_frame(VP8_COMP *cpi) { return code_key_frame; } -static void Pass1Encode(VP8_COMP *cpi, size_t *size, unsigned char *dest, - unsigned int *frame_flags) { - (void)size; - (void)dest; - (void)frame_flags; +static void Pass1Encode(VP8_COMP *cpi) { vp8_set_quantizer(cpi, 26); - vp8_first_pass(cpi); } #endif @@ -5066,7 +5061,7 @@ int vp8_get_compressed_data(VP8_COMP *cpi, unsigned int *frame_flags, } switch (cpi->pass) { #if !CONFIG_REALTIME_ONLY - case 1: Pass1Encode(cpi, size, dest, frame_flags); break; + case 1: Pass1Encode(cpi); break; case 2: Pass2Encode(cpi, size, dest, dest_end, frame_flags); break; #endif // !CONFIG_REALTIME_ONLY default: -- 2.7.4