]> git.sesse.net Git - vlc/blobdiff - modules/codec/aes3.c
aout_buffer_t: store length instead of end timestamp
[vlc] / modules / codec / aes3.c
index 48ca5e43b7252da603ec462724ffd72386187058..5639cffadf8ef1da17a2bc840c809f91aa1f9624 100644 (file)
@@ -135,7 +135,8 @@ static aout_buffer_t *Decode( decoder_t *p_dec, block_t **pp_block )
         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;