summaryrefslogtreecommitdiffstats
path: root/libhb/sync.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2013-04-30 18:35:05 +0000
committerjstebbins <[email protected]>2013-04-30 18:35:05 +0000
commitac45c4c81ba3f189a35e1f52fca7dc036b70b6b6 (patch)
treeb65320def31c80257ac5a5a93f96754a1ae84b2a /libhb/sync.c
parente3fcaf34811ec281859a9ad0c02c142c8801573d (diff)
libhb: fix crash when EOF is found before first video frame
buffer got closed twice, once in sync close and once in muxer. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5430 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/sync.c')
-rw-r--r--libhb/sync.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libhb/sync.c b/libhb/sync.c
index 3e2bbb703..3771a8e8e 100644
--- a/libhb/sync.c
+++ b/libhb/sync.c
@@ -368,6 +368,7 @@ int syncVideoWork( hb_work_object_t * w, hb_buffer_t ** buf_in,
* Feed it downstream & signal that we're done.
*/
*buf_out = next;
+ sync->cur = NULL;
pv->common->start_found = 1;
pv->common->first_pts[0] = INT64_MAX - 1;