goto exit;
p_aout_buffer->i_pts = date_Get( &p_sys->end_date );
- p_aout_buffer->end_date = date_Increment( &p_sys->end_date, i_frame_length );
+ p_aout_buffer->i_length = date_Increment( &p_sys->end_date,
+ i_frame_length ) - p_aout_buffer->i_pts;
p_block->i_buffer -= AES3_HEADER_LEN;
p_block->p_buffer += AES3_HEADER_LEN;