summaryrefslogtreecommitdiffstats
path: root/libhb/encavcodec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libhb/encavcodec.c')
-rw-r--r--libhb/encavcodec.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libhb/encavcodec.c b/libhb/encavcodec.c
index 2d3f33418..f3837b3e7 100644
--- a/libhb/encavcodec.c
+++ b/libhb/encavcodec.c
@@ -191,9 +191,11 @@ int encavcodecWork( hb_work_object_t * w, hb_buffer_t ** buf_in,
AVFrame * frame;
hb_buffer_t * in = *buf_in, * buf;
- if(!in->data)
+ if ( in->size <= 0 )
{
- *buf_out = NULL;
+ /* EOF on input - send it downstream & say we're done */
+ *buf_out = in;
+ *buf_in = NULL;
return HB_WORK_DONE;
}