summaryrefslogtreecommitdiff
path: root/softhddev.c
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2012-03-02 16:06:45 +0100
committerJohns <johns98@gmx.net>2012-03-02 16:06:45 +0100
commit4d1a516c808202141af4268199ae09e9c4bec3fc (patch)
tree09ebd14d3d791e308b4c6e9c64e4f9f2e6224032 /softhddev.c
parent995f1286bd1d85a8eae90195df1b4572ccfa7293 (diff)
downloadvdr-plugin-softhddevice-4d1a516c808202141af4268199ae09e9c4bec3fc.tar.gz
vdr-plugin-softhddevice-4d1a516c808202141af4268199ae09e9c4bec3fc.tar.bz2
Fix Bug: PES audio buffer not correct reset.
Diffstat (limited to 'softhddev.c')
-rw-r--r--softhddev.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/softhddev.c b/softhddev.c
index ee22552..d875417 100644
--- a/softhddev.c
+++ b/softhddev.c
@@ -444,6 +444,7 @@ void PesInit(PesDemux * pesdx)
void PesReset(PesDemux * pesdx)
{
pesdx->State = PES_INIT;
+ pesdx->Index = 0;
pesdx->Skip = 0;
pesdx->PTS = AV_NOPTS_VALUE;
pesdx->DTS = AV_NOPTS_VALUE;
@@ -548,6 +549,8 @@ void PesParse(PesDemux * pesdx, const uint8_t * data, int size, int is_start)
// new codec id, close and open new
if (AudioCodecID != codec_id) {
+ Debug(3, "pesdemux: new codec %#06x -> %#06x\n",
+ AudioCodecID, codec_id);
CodecAudioClose(MyAudioDecoder);
CodecAudioOpen(MyAudioDecoder, NULL, codec_id);
AudioCodecID = codec_id;