summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libhb/decvobsub.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libhb/decvobsub.c b/libhb/decvobsub.c
index 1fd9d5be3..e180b232f 100644
--- a/libhb/decvobsub.c
+++ b/libhb/decvobsub.c
@@ -513,7 +513,9 @@ static hb_buffer_t * Decode( hb_work_object_t * w )
{
pv->buf->start = pv->pts_start;
pv->buf->stop = pv->pts_stop;
- return pv->buf;
+ buf = pv->buf;
+ pv->buf = NULL;
+ return buf;
}
/* Do the actual decoding now */