summaryrefslogtreecommitdiff
path: root/dxr3audiodecoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'dxr3audiodecoder.c')
-rw-r--r--dxr3audiodecoder.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/dxr3audiodecoder.c b/dxr3audiodecoder.c
index ba699a1..8eeb68a 100644
--- a/dxr3audiodecoder.c
+++ b/dxr3audiodecoder.c
@@ -41,8 +41,6 @@ cDxr3AudioDecoder::cDxr3AudioDecoder() : rbuf(50000), ac3dtsDecoder(&rbuf)
avcodec_init();
avcodec_register_all();
- audioSynched = false;
-
// look for decoder
audio = avcodec_find_decoder(CODEC_ID_MP3);
@@ -86,9 +84,6 @@ void cDxr3AudioDecoder::Init()
esyslog("[dxr3-decoder] failed to open codec %s.", audio->name);
exit(-1);
}
-
- foundHeader = false;
- decodeAudio = true;
}
// ==================================
@@ -112,19 +107,6 @@ void cDxr3AudioDecoder::Decode(cDxr3PesFrame *frame, uint32_t pts, cDxr3SyncBuff
Init();
lastBitrate = buf[2];
}
-
- foundHeader = true;
- }
-
- if (audioSynched) {
- // no header found
- decodeAudio = true;
- } else {
- if (foundHeader && pts)
- {
- decodeAudio = true;
- audioSynched = true;
- }
}
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(51, 29, 0)