From 58b25a7664d9d063b404ec39270ff4cdfa333979 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Fri, 1 May 2015 14:47:35 +0000 Subject: libhb: Use a buffer flat to indicate EOF ... instead of a 0 length buffer. This fixes this issue: https://forum.handbrake.fr/viewtopic.php?f=12&t=31959 Theora can create 0 length output. These 0 length frames indicate duplicate frames. So we can't use 0 length buffers to indicate the end of the stream. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7143 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/cropscale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libhb/cropscale.c') diff --git a/libhb/cropscale.c b/libhb/cropscale.c index d1ef0f9bb..fc88e32a4 100644 --- a/libhb/cropscale.c +++ b/libhb/cropscale.c @@ -222,7 +222,7 @@ static int hb_crop_scale_work( hb_filter_object_t * filter, hb_filter_private_t * pv = filter->private_data; hb_buffer_t * in = *buf_in; - if ( in->size <= 0 ) + if (in->s.flags & HB_BUF_FLAG_EOF) { *buf_out = in; *buf_in = NULL; -- cgit v1.2.3