p_buf->i_nb_bytes = p_sys->i_frame_size;
p_buf->i_pts = date_Get( &p_sys->end_date );
- p_buf->end_date =
- date_Increment( &p_sys->end_date, p_sys->i_frame_length );
+ p_buf->i_length = date_Increment( &p_sys->end_date, p_sys->i_frame_length )
+ - p_buf->i_pts;
return p_buf;
}