summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;