[vlc-devel] commit: Fixed audio date on rate change in FLAC packetizer. (Laurent Aimar )

git version control git at videolan.org
Mon Dec 21 00:02:42 CET 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Dec 20 23:52:31 2009 +0100| [8fe7e00b905f185e7aa4c15e139f2974df723465] | committer: Laurent Aimar 

Fixed audio date on rate change in FLAC packetizer.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8fe7e00b905f185e7aa4c15e139f2974df723465
---

 modules/codec/flac.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/codec/flac.c b/modules/codec/flac.c
index 9b8d1c0..3e4acbc 100644
--- a/modules/codec/flac.c
+++ b/modules/codec/flac.c
@@ -478,6 +478,7 @@ static block_t *PacketizeBlock( decoder_t *p_dec, block_t **pp_block )
             {
                 p_dec->fmt_out.audio.i_rate = p_sys->i_rate;
                 date_Init( &p_sys->end_date, p_sys->i_rate, 1 );
+                date_Set( &p_sys->end_date, p_sys->i_pts );
             }
             p_sys->i_state = STATE_NEXT_SYNC;
             p_sys->i_frame_size = 1;




More information about the vlc-devel mailing list