OSDN Git Service

WinGui:
[handbrake-jp/handbrake-jp-git.git] / libhb / decvobsub.c
index 1fd9d5b..e180b23 100644 (file)
@@ -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 */