summaryrefslogtreecommitdiffstats
path: root/libhb/encavcodec.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2019-02-11 08:12:53 -0700
committerJohn Stebbins <[email protected]>2019-02-11 08:12:53 -0700
commit0dfaca7611915764f4693dba189fc02d1bbf45fa (patch)
tree5b75e235b3fa0c4c04bf8a0160c25f52830a987c /libhb/encavcodec.c
parenta54f09a9f1a292ac3b9e6699ea09d8e0239e6f7b (diff)
encavcodec: fix potential use of uninitialized variable
Diffstat (limited to 'libhb/encavcodec.c')
-rw-r--r--libhb/encavcodec.c2
1 files changed, 1 insertions, 1 deletions
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;