From: Adrian Grange Date: Tue, 24 Jul 2012 19:50:03 +0000 (-0700) Subject: Added const specifier to remove warning X-Git-Tag: v1.3.0~1217^2~361^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c9d343f3e50a7f79ee074df6a334fa5f2bef8031;p=libvpx Added const specifier to remove warning The "codecs" array is defined as const so too should the local variable that points too it. Change-Id: I536a9ced52257dc44a04fc1a3cad94c1e86f69aa --- diff --git a/vpxenc.c b/vpxenc.c index 284d8b032..5667abe1c 100644 --- a/vpxenc.c +++ b/vpxenc.c @@ -1399,7 +1399,7 @@ static int compare_img(vpx_image_t *img1, vpx_image_t *img2) { int main(int argc, const char **argv_) { vpx_codec_ctx_t encoder; - const char *in_fn = NULL, *out_fn = NULL, *stats_fn = NULL; + const char *in_fn = NULL, *out_fn = NULL, *stats_fn = NULL; int i; FILE *infile, *outfile; vpx_codec_enc_cfg_t cfg; @@ -1407,7 +1407,7 @@ int main(int argc, const char **argv_) { int pass, one_pass_only = 0; stats_io_t stats; vpx_image_t raw; - struct codec_item *codec = codecs; + const struct codec_item *codec = codecs; int frame_avail, got_data; struct arg arg;