summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Walker <[email protected]>2019-01-08 18:57:40 +0100
committersr55 <[email protected]>2019-01-09 20:35:40 +0000
commit3389a25dbf44cb11b823194a4a8cceafa4133100 (patch)
treec74017dca1068494b93ddb91b3e44f5a6f612b4a
parent2e618547989c43e330e2cd9be49d3ffb479dda4c (diff)
decavcodec: fix more potential uses of uninitialized variables
Fixes a crash I experienced locally following 76f14dad963db46961ce3d425a102ac3d898ce10 Inspired by 3c95342a8cdf5b3b03d8b5e94ec099b0bc6a4f35
-rw-r--r--libhb/decavcodec.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libhb/decavcodec.c b/libhb/decavcodec.c
index 1c3f51070..9afe318ed 100644
--- a/libhb/decavcodec.c
+++ b/libhb/decavcodec.c
@@ -427,8 +427,8 @@ static void decavcodecClose( hb_work_object_t * w )
static void audioParserFlush(hb_work_object_t * w)
{
hb_work_private_t * pv = w->private_data;
- uint8_t * pout;
- int pout_len;
+ uint8_t * pout = NULL;
+ int pout_len = 0;
int64_t parser_pts;
do
@@ -1723,8 +1723,8 @@ static void videoParserFlush(hb_work_object_t * w)
{
hb_work_private_t * pv = w->private_data;
int result;
- uint8_t * pout;
- int pout_len;
+ uint8_t * pout = NULL;
+ int pout_len = 0;
int64_t parser_pts, parser_dts;
do
@@ -1842,8 +1842,8 @@ static int decavcodecvWork( 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, parser_dts;
if (pv->parser)