diff options
-rw-r--r-- | dxr3audiodecoder.c | 18 | ||||
-rw-r--r-- | dxr3audiodecoder.h | 4 |
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]; }; |