]> granicus.if.org Git - handbrake/commitdiff
encavcodec: fix potential use of uninitialized variable
authorJohn Stebbins <jstebbins.hb@gmail.com>
Mon, 11 Feb 2019 15:12:53 +0000 (08:12 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Mon, 11 Feb 2019 15:12:53 +0000 (08:12 -0700)
libhb/encavcodec.c

index 1ca9dbda55b7db7b9273ab5d7fb3ed3f2d61d17d..3a163a2c3785fc515be43bcd8e94b35776b6dd36 100644 (file)
@@ -102,7 +102,7 @@ int encavcodecInit( hb_work_object_t * w, hb_job_t * job )
 {
     int ret = 0;
     char reason[80];
-    AVCodec * codec;
+    AVCodec * codec = NULL;
     AVCodecContext * context;
     AVRational fps;
     int64_t bit_rate_ceiling = -1;