summaryrefslogtreecommitdiffstats
path: root/libhb/sync.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2009-12-06 23:54:31 +0000
committerjstebbins <[email protected]>2009-12-06 23:54:31 +0000
commitc5963c0bbb3ddfe7be1a4c40335e727426ae6a03 (patch)
tree1801177498e1aab4c1d98bd2d76ee4280b29db88 /libhb/sync.c
parent15a7917a9e4bc850560174040dcfc06c2c611020 (diff)
fix a double free of an hb_buffer in sync
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3010 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/sync.c')
-rw-r--r--libhb/sync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/sync.c b/libhb/sync.c
index e886ac168..81e0e35ab 100644
--- a/libhb/sync.c
+++ b/libhb/sync.c
@@ -229,6 +229,7 @@ int syncVideoWork( hb_work_object_t * w, hb_buffer_t ** buf_in,
if( !sync->cur )
{
sync->cur = *buf_in;
+ *buf_in = NULL;
if( sync->cur->size == 0 )
{
/* we got an end-of-stream as our first video packet?
@@ -250,7 +251,6 @@ int syncVideoWork( hb_work_object_t * w, hb_buffer_t ** buf_in,
}
return HB_WORK_DONE;
}
- *buf_in = NULL;
return HB_WORK_OK;
}
next = *buf_in;