summaryrefslogtreecommitdiff
path: root/dxr3audiodecoder.c
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2009-12-05 22:23:33 +0100
committerChristian Gmeiner <christian.gmeiner@gmail.com>2009-12-05 22:23:33 +0100
commitdf49033f6ed44ad04c7c273e371484f42c81cd8e (patch)
tree5984e6fc0449201c47ac7840bf39151ca8d62982 /dxr3audiodecoder.c
parent419f880ce972a891104d56e1d67d459e32ef1368 (diff)
downloadvdr-plugin-dxr3-df49033f6ed44ad04c7c273e371484f42c81cd8e.tar.gz
vdr-plugin-dxr3-df49033f6ed44ad04c7c273e371484f42c81cd8e.tar.bz2
will come back when used
Diffstat (limited to 'dxr3audiodecoder.c')
-rw-r--r--dxr3audiodecoder.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/dxr3audiodecoder.c b/dxr3audiodecoder.c
index 8c7e6e1..d65689c 100644
--- a/dxr3audiodecoder.c
+++ b/dxr3audiodecoder.c
@@ -250,40 +250,6 @@ void cDxr3AudioDecoder::DecodeAc3Dts(const uint8_t* pPes, const uint8_t* buf,
}
}
-/**
- * \brief decoded payload of frame
- */
-void cDxr3AudioDecoder::decode(cDxr3PesFrame *frame)
-{
- int len;
- int out_size = AVCODEC_MAX_AUDIO_FRAME_SIZE;
-
- const uint8_t *buf = frame->GetPayload();
- int length = frame->GetPayloadLength();
-
-#if LIBAVCODEC_VERSION_INT < ((51<<16)+(29<<8)+0)
- len = avcodec_decode_audio(
-#else
- len = avcodec_decode_audio2(
-#endif
- contextAudio, frame->decoded, &out_size, const_cast<uint8_t *>(buf), length);
-
- if (len < 0) {
- esyslog("[dxr3-decoder] failed to decode audio");
- frame->decodedSize = 0;
- return;
- }
-
- // can this happen?
- if ((length - len) > 0) {
- esyslog("[dxr3-decoder] TODO: more to decode");
- }
-
- frame->decodedSize = len;
- frame->ctx.channels = contextAudio->channels;
- frame->ctx.samplerate = contextAudio->sample_rate;
-}
-
// ==================================
//! checking routine
bool cDxr3AudioDecoder::checkMpegAudioHdr(const uint8_t *head)