diff options
author | Johns <johns98@gmx.net> | 2011-12-15 22:45:55 +0100 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2011-12-15 22:45:55 +0100 |
commit | 3da81fdfccef94b1a83121873aa3d1a38086135f (patch) | |
tree | 800f61213ee52ee7fab531dc3eb336af226b3351 /codec.c | |
parent | c79d992a81adb4c9839c1b40cff4a9ebe0e0b152 (diff) | |
download | vdr-plugin-softhddevice-3da81fdfccef94b1a83121873aa3d1a38086135f.tar.gz vdr-plugin-softhddevice-3da81fdfccef94b1a83121873aa3d1a38086135f.tar.bz2 |
New video/audio sync code.
Diffstat (limited to 'codec.c')
-rw-r--r-- | codec.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -590,13 +590,14 @@ void CodecAudioDecode(AudioDecoder * audio_decoder, AVPacket * avpkt) av_init_packet(dpkt); n = av_parser_parse2(audio_decoder->AudioParser, audio_ctx, &dpkt->data, &dpkt->size, spkt->data + index, spkt->size - index, - !index ? (uint64_t) spkt->pts : AV_NOPTS_VALUE, AV_NOPTS_VALUE, - -1); + !index ? (uint64_t) spkt->pts : AV_NOPTS_VALUE, + !index ? (uint64_t) spkt->dts : AV_NOPTS_VALUE, -1); if (dpkt->size) { int buf_sz; dpkt->pts = audio_decoder->AudioParser->pts; + dpkt->dts = audio_decoder->AudioParser->dts; buf_sz = sizeof(buf); l = avcodec_decode_audio3(audio_ctx, buf, &buf_sz, dpkt); if (l < 0) { // no audio frame could be decompressed |