]> granicus.if.org Git - libvpx/commitdiff
Fix for incorrect variable declaration.
authorFritz Koenig <frkoenig@google.com>
Tue, 25 Jan 2011 23:41:41 +0000 (15:41 -0800)
committerFritz Koenig <frkoenig@google.com>
Tue, 25 Jan 2011 23:41:41 +0000 (15:41 -0800)
Commit 336aa0b7da8a35ba57400ce92fc016fc7fb35233 incorrectly
declared current_pos as and int, when it should have been
a FIRSTPASS_STATS pointer.

Change-Id: I0a51c7a86ebba8546c95dd5d9d1c1143d4613e40

vp8/encoder/firstpass.c

index 3e67bf53c7e1f309a1b77bda4c2308a31852dea6..06e26be85f35ca7c9f14fe68b8887a9136dd5de4 100644 (file)
@@ -2423,7 +2423,7 @@ void vp8_find_next_key_frame(VP8_COMP *cpi, FIRSTPASS_STATS *this_frame)
     if (cpi->oxcf.auto_key
         && cpi->frames_to_key > (int)cpi->key_frame_frequency )
     {
-        int current_pos = cpi->stats_in;
+        FIRSTPASS_STATS *current_pos = cpi->stats_in;
         FIRSTPASS_STATS tmp_frame;
 
         cpi->frames_to_key /= 2;