Put fwrite calls under corresponding macros since they shouldn't show up in release build.
This also make chromeos build happy. BUG=none TEST=compile Review URL: http://webrtc-codereview.appspot.com/247006 git-svn-id: http://webrtc.googlecode.com/svn/trunk@808 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
f31826e17b
commit
f0cd394a2e
@ -200,10 +200,12 @@ VCMEncodedFrameCallback::Encoded(
|
||||
{
|
||||
encodedBytes = encodedImage._length;
|
||||
|
||||
#ifdef DEBUG_ENCODER_BIT_STREAM
|
||||
if (_bitStreamAfterEncoder != NULL)
|
||||
{
|
||||
fwrite(encodedImage._buffer, 1, encodedImage._length, _bitStreamAfterEncoder);
|
||||
}
|
||||
#endif
|
||||
|
||||
RTPVideoHeader rtpVideoHeader;
|
||||
RTPVideoHeader* rtpVideoHeaderPtr = &rtpVideoHeader;
|
||||
|
@ -821,11 +821,13 @@ VideoCodingModuleImpl::AddVideoFrame(const VideoFrame& videoFrame,
|
||||
WebRtc_Word32 ret = _encoder->Encode(videoFrame,
|
||||
codecSpecificInfo,
|
||||
_nextFrameType);
|
||||
#ifdef DEBUG_ENCODER_INPUT
|
||||
if (_encoderInputFile != NULL)
|
||||
{
|
||||
fwrite(videoFrame.Buffer(), 1, videoFrame.Length(),
|
||||
_encoderInputFile);
|
||||
}
|
||||
#endif
|
||||
if (ret < 0)
|
||||
{
|
||||
WEBRTC_TRACE(webrtc::kTraceError,
|
||||
@ -1081,12 +1083,14 @@ VideoCodingModuleImpl::Decode(WebRtc_UWord16 maxWaitTimeMs)
|
||||
_timing.UpdateCurrentDelay(frame->RenderTimeMs(),
|
||||
VCMTickTime::MillisecondTimestamp());
|
||||
|
||||
#ifdef DEBUG_DECODER_BIT_STREAM
|
||||
if (_bitStreamBeforeDecoder != NULL)
|
||||
{
|
||||
// Write bit stream to file for debugging purposes
|
||||
fwrite(frame->Buffer(), 1, frame->Length(),
|
||||
_bitStreamBeforeDecoder);
|
||||
}
|
||||
#endif
|
||||
if (_frameStorageCallback != NULL)
|
||||
{
|
||||
WebRtc_Word32 ret = frame->Store(*_frameStorageCallback);
|
||||
|
Loading…
x
Reference in New Issue
Block a user