mirror of https://github.com/mpv-player/mpv
Set pts also for audio packets
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22450 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
723fc2a290
commit
85671d7ee6
|
@ -217,6 +217,7 @@ static int demux_avs_fill_buffer(demuxer_t *demuxer, demux_stream_t *ds)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
dp = new_demux_packet(l);
|
dp = new_demux_packet(l);
|
||||||
|
dp->pts = AVS->sampleno / sh_audio->samplerate;
|
||||||
|
|
||||||
if (AVS->avs_get_audio(AVS->clip, dp->buffer, AVS->sampleno, samples))
|
if (AVS->avs_get_audio(AVS->clip, dp->buffer, AVS->sampleno, samples))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue