shithub: libvpx

Download patch

ref: f9dba66877fb9ccd7eaffc4ed85372447381890d
parent: e03330bd807f28d944303465bb1e4fe1e71c97f3
parent: 9409af20832933454eb8f9084a35781b92c10734
author: Johann <johannkoenig@google.com>
date: Tue Oct 25 10:42:21 EDT 2011

Merge "remove uninitialized variable warning"

--- a/vp8/decoder/decodframe.c
+++ b/vp8/decoder/decodframe.c
@@ -667,21 +667,19 @@
 
     if (data_end - data < 3)
     {
-        if (pbi->ec_active)
+        if (!pbi->ec_active)
         {
-            /* Declare the missing frame as an inter frame since it will
-               be handled as an inter frame when we have estimated its
-               motion vectors. */
-            pc->frame_type = INTER_FRAME;
-            pc->version = 0;
-            pc->show_frame = 1;
-            first_partition_length_in_bytes = 0;
-        }
-        else
-        {
             vpx_internal_error(&pc->error, VPX_CODEC_CORRUPT_FRAME,
                                "Truncated packet");
         }
+
+        /* Declare the missing frame as an inter frame since it will
+           be handled as an inter frame when we have estimated its
+           motion vectors. */
+        pc->frame_type = INTER_FRAME;
+        pc->version = 0;
+        pc->show_frame = 1;
+        first_partition_length_in_bytes = 0;
     }
     else
     {