summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2009-12-05 21:34:10 +0100
committerChristian Gmeiner <christian.gmeiner@gmail.com>2009-12-05 21:34:10 +0100
commitdb60f10e5c1d76799ba397c3791ed86aa8b6f7c6 (patch)
tree106371663d7c90b179e7c5ba42fdf757996d2121
parentf5cd1aa2f7bc9c1efe5608d577a511f8c18787c7 (diff)
downloadvdr-plugin-dxr3-db60f10e5c1d76799ba397c3791ed86aa8b6f7c6.tar.gz
vdr-plugin-dxr3-db60f10e5c1d76799ba397c3791ed86aa8b6f7c6.tar.bz2
remove not needed bools and the logic behind them
-rw-r--r--dxr3audiodecoder.c18
-rw-r--r--dxr3audiodecoder.h4
2 files changed, 0 insertions, 22 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)
diff --git a/dxr3audiodecoder.h b/dxr3audiodecoder.h
index 55437c8..3888f07 100644
--- a/dxr3audiodecoder.h
+++ b/dxr3audiodecoder.h
@@ -65,10 +65,6 @@ private:
cRingBufferFrame rbuf;
cMultichannelAudio ac3dtsDecoder;
- bool audioSynched;
- bool foundHeader;
- bool decodeAudio;
-
uint8_t lastBitrate;
uint8_t pcmbuf[AVCODEC_MAX_AUDIO_FRAME_SIZE];
};