]> git.sesse.net Git - vlc/blobdiff - modules/demux/wav.c
Adjustments to better match VLC coding style.
[vlc] / modules / demux / wav.c
index 8dad26969714c0138adb133af30ccf6d538a8124..3c3a01249da3c22c80fe833e2c64a7309a4054d9 100644 (file)
@@ -419,7 +419,7 @@ static int Demux( demux_t *p_demux )
     }
 
     p_block->i_dts =
-    p_block->i_pts = date_Increment( &p_sys->pts, p_sys->i_frame_samples );
+    p_block->i_pts = VLC_TS_0 + date_Get( &p_sys->pts );
 
     /* set PCR */
     es_out_Control( p_demux->out, ES_OUT_SET_PCR, p_block->i_pts );
@@ -433,6 +433,8 @@ static int Demux( demux_t *p_demux )
 
     es_out_Send( p_demux->out, p_sys->p_es, p_block );
 
+    date_Increment( &p_sys->pts, p_sys->i_frame_samples );
+
     return 1;
 }