]> git.sesse.net Git - vlc/blobdiff - modules/codec/vorbis.c
aout_buffer_t: store length instead of end timestamp
[vlc] / modules / codec / vorbis.c
index 564291f429483c9c62ec527fccb1b3fe3133e1d2..f130648206b3a0634cc8c724c04d56af8dec5dc3 100644 (file)
@@ -560,7 +560,8 @@ static aout_buffer_t *DecodePacket( decoder_t *p_dec, ogg_packet *p_oggpacket )
 
         /* Date management */
         p_aout_buffer->i_pts = date_Get( &p_sys->end_date );
-        p_aout_buffer->end_date = date_Increment( &p_sys->end_date, i_samples );
+        p_aout_buffer->i_length = date_Increment( &p_sys->end_date,
+                                           i_samples ) - p_aout_buffer->i_pts;
         return p_aout_buffer;
     }
     else