summaryrefslogtreecommitdiff
path: root/codec.c
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2011-12-15 22:45:55 +0100
committerJohns <johns98@gmx.net>2011-12-15 22:45:55 +0100
commit3da81fdfccef94b1a83121873aa3d1a38086135f (patch)
tree800f61213ee52ee7fab531dc3eb336af226b3351 /codec.c
parentc79d992a81adb4c9839c1b40cff4a9ebe0e0b152 (diff)
downloadvdr-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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/codec.c b/codec.c
index 82fcef2..fd5258d 100644
--- a/codec.c
+++ b/codec.c
@@ -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