Mercurial > mplayer.hg
comparison libmpdemux/demux_avs.c @ 22432:7b9edf61170a
Set pts also for audio packets
author | reimar |
---|---|
date | Sun, 04 Mar 2007 15:02:53 +0000 |
parents | 0cf22436ef75 |
children | d4faccf8bcd7 |
comparison
equal
deleted
inserted
replaced
22431:0cf22436ef75 | 22432:7b9edf61170a |
---|---|
215 if (l > INT_MAX) { | 215 if (l > INT_MAX) { |
216 mp_msg(MSGT_DEMUX, MSGL_FATAL, "AVS: audio packet too big\n"); | 216 mp_msg(MSGT_DEMUX, MSGL_FATAL, "AVS: audio packet too big\n"); |
217 return 0; | 217 return 0; |
218 } | 218 } |
219 dp = new_demux_packet(l); | 219 dp = new_demux_packet(l); |
220 dp->pts = AVS->sampleno / sh_audio->samplerate; | |
220 | 221 |
221 if (AVS->avs_get_audio(AVS->clip, dp->buffer, AVS->sampleno, samples)) | 222 if (AVS->avs_get_audio(AVS->clip, dp->buffer, AVS->sampleno, samples)) |
222 { | 223 { |
223 mp_msg(MSGT_DEMUX, MSGL_V, "AVS: avs_get_audio() failed\n"); | 224 mp_msg(MSGT_DEMUX, MSGL_V, "AVS: avs_get_audio() failed\n"); |
224 return 0; | 225 return 0; |