diff options
author | Urvang Joshi <urvang@google.com> | 2016-07-08 16:09:36 -0700 |
---|---|---|
committer | Johann <johannkoenig@google.com> | 2016-09-27 12:39:36 -0700 |
commit | 097b31c7f0272c39016ce11ae182e8424b4ee762 (patch) | |
tree | 20d10c9dcfebb82d55eecbe8897e0165b876962e /examples | |
parent | 0aa3e2564fd7ae2b63984b6bf993f57c4b436073 (diff) | |
download | libvpx-097b31c7f0272c39016ce11ae182e8424b4ee762.tar libvpx-097b31c7f0272c39016ce11ae182e8424b4ee762.tar.gz libvpx-097b31c7f0272c39016ce11ae182e8424b4ee762.tar.bz2 libvpx-097b31c7f0272c39016ce11ae182e8424b4ee762.zip |
Add compiler flag -Wsign-compare
Also, fix the warnings generated by this flag.
(cherry picked from commit ebeb1155d4fa6d28e2f40c92265245f8df097fcb)
From AOM. Don't actually add -Wsign-compare. It will be covered by
-Wextra.
Switch to vpx_integer.h from df9c9d6d4c43f02c58d4e776c53323788e013cbc
BUG=webm:1069
Change-Id: I1dc6e61caa5d56af4a55b6692ab620bb3144652a
Diffstat (limited to 'examples')
-rw-r--r-- | examples/vp9cx_set_ref.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/examples/vp9cx_set_ref.c b/examples/vp9cx_set_ref.c index 798d7e3f2..3472689db 100644 --- a/examples/vp9cx_set_ref.c +++ b/examples/vp9cx_set_ref.c @@ -304,6 +304,7 @@ int main(int argc, char **argv) { const char *height_arg = NULL; const char *infile_arg = NULL; const char *outfile_arg = NULL; + const char *update_frame_num_arg = NULL; unsigned int limit = 0; vp9_zero(ecodec); @@ -318,18 +319,21 @@ int main(int argc, char **argv) { height_arg = argv[2]; infile_arg = argv[3]; outfile_arg = argv[4]; + update_frame_num_arg = argv[5]; encoder = get_vpx_encoder_by_name("vp9"); if (!encoder) die("Unsupported codec."); - update_frame_num = atoi(argv[5]); + update_frame_num = (unsigned int)strtoul(update_frame_num_arg, NULL, 0); // In VP9, the reference buffers (cm->buffer_pool->frame_bufs[i].buf) are // allocated while calling vpx_codec_encode(), thus, setting reference for // 1st frame isn't supported. - if (update_frame_num <= 1) die("Couldn't parse frame number '%s'\n", argv[5]); + if (update_frame_num <= 1) { + die("Couldn't parse frame number '%s'\n", update_frame_num_arg); + } if (argc > 6) { - limit = atoi(argv[6]); + limit = (unsigned int)strtoul(argv[6], NULL, 0); if (update_frame_num > limit) die("Update frame number couldn't larger than limit\n"); } |