summaryrefslogtreecommitdiffstats
path: root/libhb/sync.c
diff options
context:
space:
mode:
authorvan <[email protected]>2008-04-14 08:27:59 +0000
committervan <[email protected]>2008-04-14 08:27:59 +0000
commit16b6e49fdb0b999b1498dc9c596d3df6b6fa83ea (patch)
tree2150d73885c466b55b28fc1caf63b12b2b50e7cc /libhb/sync.c
parentd3aeb74cdf94f70b643da897dfb666d81a743817 (diff)
Fix the automatic subtitle scan that I broke with r1412.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1413 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/sync.c')
-rw-r--r--libhb/sync.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libhb/sync.c b/libhb/sync.c
index 61e23ff00..efd1d17bf 100644
--- a/libhb/sync.c
+++ b/libhb/sync.c
@@ -289,6 +289,14 @@ static int SyncVideo( hb_work_object_t * w )
return HB_WORK_OK;
}
cur = pv->cur;
+ if( cur->size == 0 && pv->pts_offset == INT64_MIN )
+ {
+ /* we got an end-of-stream with no video frames (happens during
+ * an indepth_scan). Feed the eos downstream & signal that we're done. */
+ hb_fifo_push( job->fifo_sync, hb_buffer_init( 0 ) );
+ pv->done = 1;
+ return HB_WORK_DONE;
+ }
/* At this point we have a frame to process. Let's check
1) if we will be able to push into the fifo ahead