summaryrefslogtreecommitdiffstats
path: root/libhb/vfr.c
diff options
context:
space:
mode:
Diffstat (limited to 'libhb/vfr.c')
-rw-r--r--libhb/vfr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libhb/vfr.c b/libhb/vfr.c
index 499d85059..8f62c9241 100644
--- a/libhb/vfr.c
+++ b/libhb/vfr.c
@@ -469,7 +469,8 @@ static int hb_vfr_work( hb_filter_object_t * filter,
*buf_in = NULL;
*buf_out = NULL;
- if( in->size <= 0 )
+
+ if (in->s.flags & HB_BUF_FLAG_EOF)
{
hb_buffer_t *head = NULL, *tail = NULL, *next;
int counter = 2;