]> granicus.if.org Git - libvpx/commitdiff
VP8_COMP: make frames_since_golden signed
authorJohann <johannkoenig@google.com>
Mon, 13 Jun 2016 18:51:21 +0000 (11:51 -0700)
committerJohann Koenig <johannkoenig@google.com>
Thu, 16 Jun 2016 22:02:30 +0000 (22:02 +0000)
This value is signed in vp9/10

Cleans warning in Android build:
comparison of integers of different signs: 'unsigned int' and 'int'
if (cpi->frames_since_golden == (cpi->current_gf_interval >> 1))
    ~~~~~~~~~~~~~~~~~~~~~~~~ ^   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Change-Id: Ie137724982f3a46c8c1820548c1960d62a4e96f2

vp8/encoder/onyx_int.h

index 6ede9b95a74c483ed16d5d74ef8de4c4949c3dab..44fbbd456b06d32f927cf25468e8830537f7028e 100644 (file)
@@ -371,7 +371,7 @@ typedef struct VP8_COMP
     double key_frame_rate_correction_factor;
     double gf_rate_correction_factor;
 
-    unsigned int frames_since_golden;
+    int frames_since_golden;
     /* Count down till next GF */
     int frames_till_gf_update_due;