]> granicus.if.org Git - handbrake/commitdiff
libhb: fix crash when EOF is found before first video frame
authorjstebbins <jstebbins.hb@gmail.com>
Tue, 30 Apr 2013 18:35:05 +0000 (18:35 +0000)
committerjstebbins <jstebbins.hb@gmail.com>
Tue, 30 Apr 2013 18:35:05 +0000 (18:35 +0000)
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

libhb/sync.c

index 3e2bbb70377ad4c83816917e56746f0ff882f7aa..3771a8e8e80e2a2ef7935da009d5c3e506b6e71e 100644 (file)
@@ -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;