[MPlayer-cvslog] r32678 - trunk/libmpdemux/demux_audio.c

reimar subversion at mplayerhq.hu
Wed Dec 8 23:53:52 CET 2010


Author: reimar
Date: Wed Dec  8 23:53:52 2010
New Revision: 32678

Log:
Do not generate nonsensical pts values for FLAC audio.

Modified:
   trunk/libmpdemux/demux_audio.c

Modified: trunk/libmpdemux/demux_audio.c
==============================================================================
--- trunk/libmpdemux/demux_audio.c	Wed Dec  8 20:43:51 2010	(r32677)
+++ trunk/libmpdemux/demux_audio.c	Wed Dec  8 23:53:52 2010	(r32678)
@@ -588,8 +588,7 @@ static int demux_audio_fill_buffer(demux
     l = 65535;
     dp = new_demux_packet(l);
     l = stream_read(s,dp->buffer,l);
-    /* FLAC is not a constant-bitrate codec. These values will be wrong. */
-    priv->next_pts += l/(double)sh_audio->i_bps;
+    priv->next_pts = MP_NOPTS_VALUE;
     break;
   }
   default:


More information about the MPlayer-cvslog mailing list