Index: libhb/encx264.c =================================================================== --- libhb/encx264.c (revision 1620) +++ libhb/encx264.c (working copy) @@ -566,6 +566,8 @@ hb_work_private_t *pv = w->private_data; hb_buffer_t *in = *buf_in; + *buf_out = NULL; + if( in->size <= 0 ) { // EOF on input. Flush any frames still in the decoder then