[vlc-devel] commit: Fixed real PCR. (Laurent Aimar )

git version control git at videolan.org
Sun Dec 14 16:40:09 CET 2008


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Dec 14 14:12:34 2008 +0100| [ab7639bdedce1ef0562d985688a83ba72388826f] | committer: Laurent Aimar 

Fixed real PCR.

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

 modules/demux/real.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/demux/real.c b/modules/demux/real.c
index 6ab7952..78bcada 100644
--- a/modules/demux/real.c
+++ b/modules/demux/real.c
@@ -358,7 +358,7 @@ static int Demux( demux_t *p_demux )
     {
         real_track_t *tk = p_sys->track[i];
 
-        if( i_pcr <= 0 || ( tk->i_last_dts > 0 && tk->i_last_dts > i_pcr ) )
+        if( i_pcr <= 0 || ( tk->i_last_dts > 0 && tk->i_last_dts < i_pcr ) )
             i_pcr = tk->i_last_dts;
     }
     if( i_pcr > 0 && i_pcr != p_sys->i_pcr )
@@ -701,7 +701,8 @@ static void DemuxAudioMethod1( demux_t *p_demux, real_track_t *tk, mtime_t i_pts
            tk->p_subpackets[tk->i_out_subpacket] )
     {
         block_t *p_block = tk->p_subpackets[tk->i_out_subpacket];
-        tk->p_subpackets[tk->i_out_subpacket] = 0;
+        tk->p_subpackets[tk->i_out_subpacket] = NULL;
+
         if( tk->p_subpackets_timecode[tk->i_out_subpacket] )
         {
             p_block->i_dts =




More information about the vlc-devel mailing list