diff options
Diffstat (limited to 'libhb/encavcodecaudio.c')
-rw-r--r-- | libhb/encavcodecaudio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libhb/encavcodecaudio.c b/libhb/encavcodecaudio.c index 784ba5e2f..78c993286 100644 --- a/libhb/encavcodecaudio.c +++ b/libhb/encavcodecaudio.c @@ -431,11 +431,11 @@ static hb_buffer_t * Flush( hb_work_object_t * w ) if( last ) { - last->next = hb_buffer_init( 0 ); + last->next = hb_buffer_eof_init(); } else { - first = hb_buffer_init( 0 ); + first = hb_buffer_eof_init(); } return first; @@ -452,7 +452,7 @@ static int encavcodecaWork( hb_work_object_t * w, hb_buffer_t ** buf_in, hb_work_private_t * pv = w->private_data; hb_buffer_t * in = *buf_in, * buf; - if ( in->size <= 0 ) + if (in->s.flags & HB_BUF_FLAG_EOF) { /* EOF on input - send it downstream & say we're done */ *buf_out = Flush( w ); |