diff options
-rw-r--r-- | dxr3demuxdevice.c | 6 | ||||
-rw-r--r-- | dxr3multichannelaudio.c | 8 |
2 files changed, 8 insertions, 6 deletions
diff --git a/dxr3demuxdevice.c b/dxr3demuxdevice.c index 669c729..3ed890c 100644 --- a/dxr3demuxdevice.c +++ b/dxr3demuxdevice.c @@ -289,7 +289,7 @@ int cDxr3DemuxDevice::DemuxPes(const uint8_t* buf, int length, bool bAc3Dts) m_synchState == DXR3_DEMUX_SYNCHED) { m_dxr3Device->SetHorizontalSize(pesFrame->GetHorizontalSize()); m_dxr3Device->SetVerticalSize(pesFrame->GetVerticalSize()); - while (!Poll(100)); + while (!Poll(100)) {} cFixedLengthFrame* pTempFrame = m_vBuf.Push(pesFrame->GetPayload(), (int) (pesFrame->GetPayloadLength()), pts, ftVideo); // TODO: rework me @@ -362,7 +362,7 @@ int cDxr3DemuxDevice::DemuxPes(const uint8_t* buf, int length, bool bAc3Dts) m_vBuf.Start(); m_aBuf.Start(); } - while(!Poll(100)); + while(!Poll(100)) {} m_aDecoder.Decode(pesFrame, pts, m_aBuf); } else { @@ -507,7 +507,7 @@ int cDxr3DemuxDevice::DemuxAudioPes(const uint8_t* buf, int length) syncCounter <= 2) { syncCounter++; } - while (!m_aBuf.Poll(100)); + while (!m_aBuf.Poll(100)) {} m_aDecoder.DecodeLpcm(pesFrame, 0, m_aBuf); } diff --git a/dxr3multichannelaudio.c b/dxr3multichannelaudio.c index ed4541f..d8cbf69 100644 --- a/dxr3multichannelaudio.c +++ b/dxr3multichannelaudio.c @@ -202,8 +202,9 @@ void cAudioEncapsulator::PutData(const uchar *data, int len) { if (!muteData) { - if (!frameData) + if (!frameData) { DEBUG("PutData() without frame\n"); + } while (frameData && len > 0) { int l = std::min(len, frameCount); @@ -594,8 +595,9 @@ cMultichannelAudio::cMultichannelAudio(cRingBufferFrame *rb) encapsulator = 0; ringBuffer = rb; fixed = false; - if (!ringBuffer) - DEBUG("multichannel: no ringbuffer!"); + if (!ringBuffer) { + DEBUG("multichannel: no ringbuffer!"); + } } cMultichannelAudio::~cMultichannelAudio() |