From d15c4b99f8ba0346fe724ba31adc41c227762723 Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Fri, 4 Dec 2009 13:00:27 +0100 Subject: rework checking of mpeg audio header --- dxr3audiodecoder.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dxr3audiodecoder.h') diff --git a/dxr3audiodecoder.h b/dxr3audiodecoder.h index 6216579..55437c8 100644 --- a/dxr3audiodecoder.h +++ b/dxr3audiodecoder.h @@ -57,7 +57,7 @@ public: } private: - bool HeadCheck(unsigned long head); + bool checkMpegAudioHdr(const uint8_t *head); AVCodec *audio; AVCodecContext *contextAudio; @@ -69,7 +69,7 @@ private: bool foundHeader; bool decodeAudio; - uint8_t lastHeader[4]; + uint8_t lastBitrate; uint8_t pcmbuf[AVCODEC_MAX_AUDIO_FRAME_SIZE]; }; -- cgit v1.2.3