]> git.sesse.net Git - vlc/blobdiff - modules/codec/dts.c
aout_buffer_t: store length instead of end timestamp
[vlc] / modules / codec / dts.c
index f8f70a8840cf0c47785d9dc5f7d7d5f2b2baa9be..53aa31af4573e4d09a626d9caf50503b6d300bb5 100644 (file)
@@ -411,8 +411,8 @@ static aout_buffer_t *GetAoutBuffer( decoder_t *p_dec )
     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;
 }