]> granicus.if.org Git - handbrake/commitdiff
decavcodec: fix potential use of uninitialized variables
authorJohn Stebbins <jstebbins.hb@gmail.com>
Sat, 5 Jan 2019 18:58:38 +0000 (11:58 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Sat, 5 Jan 2019 18:58:38 +0000 (11:58 -0700)
libhb/decavcodec.c

index 30b39f9749b186fe18feecfcc853bd1697595614..2294f8e8b5283bbf1561520c97ff0b14c76f3b13 100644 (file)
@@ -479,8 +479,8 @@ static int decavcodecaWork( hb_work_object_t * w, hb_buffer_t ** buf_in,
     }
     for (pos = 0; pos < in->size; pos += len)
     {
-        uint8_t * pout;
-        int       pout_len;
+        uint8_t * pout = NULL;
+        int       pout_len = 0;
         int64_t   parser_pts;
 
         if ( pv->parser != NULL )