summaryrefslogtreecommitdiffstats
path: root/libhb/encavcodec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libhb/encavcodec.c')
-rw-r--r--libhb/encavcodec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/encavcodec.c b/libhb/encavcodec.c
index 7b1c01ccc..856fff31a 100644
--- a/libhb/encavcodec.c
+++ b/libhb/encavcodec.c
@@ -518,7 +518,7 @@ int encavcodecWork( hb_work_object_t * w, hb_buffer_t ** buf_in,
hb_job_t * job = pv->job;
AVFrame * frame;
hb_buffer_t * in = *buf_in, * buf;
- char final_flushing_call = (in->size <= 0);
+ char final_flushing_call = !!(in->s.flags & HB_BUF_FLAG_EOF);
if ( final_flushing_call )
{
//make a flushing call to encode for codecs that can encode out of order