From 9510a0043ca72bf387a69022ff36f6fad3b0c66e Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Fri, 4 Dec 2009 14:01:17 +0100 Subject: fix a small problem with initing the lastBitrate value --- dxr3audiodecoder.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dxr3audiodecoder.c b/dxr3audiodecoder.c index e7002db..d4f14a0 100644 --- a/dxr3audiodecoder.c +++ b/dxr3audiodecoder.c @@ -60,6 +60,8 @@ cDxr3AudioDecoder::cDxr3AudioDecoder() : rbuf(50000), ac3dtsDecoder(&rbuf) esyslog("[dxr3-decoder] failed to open codec %s.", audio->name); exit(-1); } + + lastBitrate = 0xff; // init with an invalid value - see checkMpegAudioHdr; } // ================================== @@ -87,7 +89,6 @@ void cDxr3AudioDecoder::Init() foundHeader = false; decodeAudio = true; - lastBitrate = 0xff; // init with an invalid value - see checkMpegAudioHdr; } // ================================== -- cgit v1.2.3