Skip to content

Commit

Permalink
decavcodec: fix more potential uses of uninitialized variables
Browse files Browse the repository at this point in the history
Fixes a crash I experienced locally following 76f14da

Inspired by 3c95342
  • Loading branch information
twalker314 committed Jan 8, 2019
1 parent 49ab003 commit 4c7e2e6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions libhb/decavcodec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 4c7e2e6

Please sign in to comment.