video_coding: Removing compiler warnings
Review URL: http://webrtc-codereview.appspot.com/88010 git-svn-id: http://webrtc.googlecode.com/svn/trunk@274 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
7acd3ba9e9
commit
506bc3cf12
@ -152,7 +152,7 @@ private:
|
||||
WebRtc_Word32 _width;
|
||||
WebRtc_Word32 _height;
|
||||
WebRtc_Word32 _maxBitRateKbit;
|
||||
int _maxFrameRate;
|
||||
WebRtc_UWord32 _maxFrameRate;
|
||||
bool _inited;
|
||||
WebRtc_UWord32 _timeStamp;
|
||||
WebRtc_UWord16 _pictureID;
|
||||
|
@ -167,7 +167,7 @@ VP8Encoder::SetRates(WebRtc_UWord32 newBitRateKbit, WebRtc_UWord32 newFrameRate)
|
||||
// update frame rate
|
||||
if (newFrameRate != _maxFrameRate)
|
||||
{
|
||||
_maxFrameRate = static_cast<int>(newFrameRate);
|
||||
_maxFrameRate = newFrameRate;
|
||||
_cfg->g_timebase.num = 1;
|
||||
_cfg->g_timebase.den = _maxFrameRate;
|
||||
}
|
||||
@ -656,7 +656,7 @@ VP8Decoder::InitDecode(const VideoCodec* inst,
|
||||
cfg.threads = numberOfCores;
|
||||
cfg.h = cfg.w = 0; // set after decode
|
||||
|
||||
if(vpx_codec_dec_init(_decoder, vpx_codec_vp8_dx(), NULL, 0))
|
||||
if (vpx_codec_dec_init(_decoder, vpx_codec_vp8_dx(), NULL, 0))
|
||||
{
|
||||
return WEBRTC_VIDEO_CODEC_MEMORY;
|
||||
}
|
||||
@ -669,7 +669,7 @@ VP8Decoder::InitDecode(const VideoCodec* inst,
|
||||
// ppcfg.NoiseLevel = 1; //Noise intensity. Valid range: [0,7]
|
||||
vpx_codec_control(_decoder, VP8_SET_POSTPROC, &ppcfg);
|
||||
|
||||
// Save the VideoCodec instance for later; mainly for duplicating the decoder.
|
||||
// Save VideoCodec instance for later; mainly for duplicating the decoder.
|
||||
if (inst)
|
||||
{
|
||||
if (!_inst)
|
||||
@ -686,9 +686,9 @@ VP8Decoder::InitDecode(const VideoCodec* inst,
|
||||
|
||||
WebRtc_Word32
|
||||
VP8Decoder::Decode(const EncodedImage& inputImage,
|
||||
bool missingFrames,
|
||||
const void* /*codecSpecificInfo*/,
|
||||
WebRtc_Word64 /*renderTimeMs*/)
|
||||
bool missingFrames,
|
||||
const void* /*codecSpecificInfo*/,
|
||||
WebRtc_Word64 /*renderTimeMs*/)
|
||||
{
|
||||
if (!_inited)
|
||||
{
|
||||
@ -756,7 +756,7 @@ VP8Decoder::Decode(const EncodedImage& inputImage,
|
||||
if (inputImage._frameType == kKeyFrame)
|
||||
{
|
||||
// Reduce size due to PictureID that we won't copy.
|
||||
const int bytesToCopy = inputImage._length - numberOfBytes;
|
||||
const WebRtc_UWord32 bytesToCopy = inputImage._length - numberOfBytes;
|
||||
if (_lastKeyFrame._size < bytesToCopy)
|
||||
{
|
||||
delete [] _lastKeyFrame._buffer;
|
||||
@ -981,7 +981,8 @@ VP8Decoder::Copy()
|
||||
|
||||
const vpx_ref_frame_type_t typeVec[] = { VP8_LAST_FRAME, VP8_GOLD_FRAME,
|
||||
VP8_ALTR_FRAME };
|
||||
for (int ix = 0; ix < sizeof(typeVec) / sizeof(vpx_ref_frame_type_t); ++ix)
|
||||
for (WebRtc_UWord32 ix = 0;
|
||||
ix < sizeof(typeVec) / sizeof(vpx_ref_frame_type_t); ++ix)
|
||||
{
|
||||
_refFrame->frame_type = typeVec[ix];
|
||||
if (CopyReference(copyTo) < 0)
|
||||
|
@ -108,7 +108,6 @@ VCMReceiver::InsertPacket(const VCMPacket& packet,
|
||||
MaskWord64ToUWord32(VCMTickTime::MillisecondTimestamp()));
|
||||
}
|
||||
|
||||
const bool emptyFrame = (buffer->Length() == 0);
|
||||
const WebRtc_Word64 nowMs = VCMTickTime::MillisecondTimestamp();
|
||||
|
||||
WebRtc_Word64 renderTimeMs = _timing.RenderTimeMs(packet.timestamp, nowMs);
|
||||
|
@ -760,7 +760,6 @@ VCMSessionInfo::PrepareForDecode(WebRtc_UWord8* ptrStartOfLayer,
|
||||
{
|
||||
WebRtc_UWord32 currentPacketOffset = 0;
|
||||
WebRtc_UWord32 length = GetSessionLength();
|
||||
WebRtc_UWord32 idSum = 0;
|
||||
WebRtc_UWord32 realDataBytes = 0;
|
||||
if (length == 0)
|
||||
{
|
||||
|
@ -955,8 +955,6 @@ VideoCodingModuleImpl::Decode(WebRtc_UWord16 maxWaitTimeMs)
|
||||
{
|
||||
CriticalSectionScoped cs(_receiveCritSect);
|
||||
|
||||
const WebRtc_UWord32 timestamp = frame->TimeStamp();
|
||||
|
||||
// If this frame was too late, we should adjust the delay accordingly
|
||||
_timing.UpdateCurrentDelay(frame->RenderTimeMs(), VCMTickTime::MillisecondTimestamp());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user