diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-02-03 12:14:29 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-02-03 12:14:29 +0000 |
commit | 40dca58f37bab581ad156f03545efc4428a34cb3 (patch) | |
tree | 3e326d33050bc77e35c8f5d16c595a583299c231 /libmpdemux/demux_real.c | |
parent | 8b068da7ad4cac7ebdb39bf645a53c44f2cf88b8 (diff) | |
download | mpv-40dca58f37bab581ad156f03545efc4428a34cb3.tar.bz2 mpv-40dca58f37bab581ad156f03545efc4428a34cb3.tar.xz |
Allow demuxers to choose a default value for correct_pts
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25951 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/demux_real.c')
-rw-r--r-- | libmpdemux/demux_real.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpdemux/demux_real.c b/libmpdemux/demux_real.c index a3f1643210..0d4a114266 100644 --- a/libmpdemux/demux_real.c +++ b/libmpdemux/demux_real.c @@ -743,7 +743,7 @@ got_audio: break; } priv->audio_need_keyframe = 0; - priv->audio_timestamp[priv->sub_packet_cnt] = (priv->a_pts==timestamp) ? (correct_pts ? MP_NOPTS_VALUE : 0) : (timestamp/1000.0); + priv->audio_timestamp[priv->sub_packet_cnt] = (priv->a_pts==timestamp) ? (user_correct_pts > 0 ? MP_NOPTS_VALUE : 0) : (timestamp/1000.0); priv->a_pts = timestamp; if (priv->sub_packet_cnt == 0) priv->audio_filepos = demuxer->filepos; |