From: John Stebbins Date: Mon, 11 Feb 2019 15:12:53 +0000 (-0700) Subject: encavcodec: fix potential use of uninitialized variable X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0dfaca7611915764f4693dba189fc02d1bbf45fa;p=handbrake encavcodec: fix potential use of uninitialized variable --- diff --git a/libhb/encavcodec.c b/libhb/encavcodec.c index 1ca9dbda5..3a163a2c3 100644 --- a/libhb/encavcodec.c +++ b/libhb/encavcodec.c @@ -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;