diff options
author | Andreas Gampe <agampe@google.com> | 2014-12-08 16:14:15 -0800 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2014-12-08 16:14:15 -0800 |
commit | 661c5a76313015b6a3fea4b0e593b761a32f4372 (patch) | |
tree | 526d14fe23320c742430845e0d8b318e0b2812c6 /videodecoder | |
parent | a0b150db4d1ed2bf5234eeec36a4dd2a88ec6b53 (diff) | |
download | libmix-661c5a76313015b6a3fea4b0e593b761a32f4372.tar.gz |
Libmix: Remove unused variables
For build-system CFLAGS clean-up, remove unused variables.
Bug: 18632512
Change-Id: Ic6eb098745596a7317f19c8ec52be435c3409f51
Diffstat (limited to 'videodecoder')
-rw-r--r-- | videodecoder/VideoDecoderBase.cpp | 8 | ||||
-rw-r--r-- | videodecoder/securevideo/moorefield/VideoDecoderAVCSecure.cpp | 1 |
2 files changed, 3 insertions, 6 deletions
diff --git a/videodecoder/VideoDecoderBase.cpp b/videodecoder/VideoDecoderBase.cpp index 1065cd4..d1383fc 100644 --- a/videodecoder/VideoDecoderBase.cpp +++ b/videodecoder/VideoDecoderBase.cpp @@ -259,7 +259,6 @@ const VideoFormatInfo* VideoDecoderBase::getFormatInfo(void) { } const VideoRenderBuffer* VideoDecoderBase::getOutput(bool draining, VideoErrorBuffer *outErrBuf) { - VAStatus vaStatus; if (mVAStarted == false) { return NULL; } @@ -282,7 +281,7 @@ const VideoRenderBuffer* VideoDecoderBase::getOutput(bool draining, VideoErrorBu if (mOutputHead == NULL) { mOutputTail = NULL; } - vaStatus = vaSetTimestampForSurface(mVADisplay, outputByPos->renderBuffer.surface, outputByPos->renderBuffer.timeStamp); + vaSetTimestampForSurface(mVADisplay, outputByPos->renderBuffer.surface, outputByPos->renderBuffer.timeStamp); if (useGraphicBuffer && !mUseGEN) { vaSyncSurface(mVADisplay, outputByPos->renderBuffer.surface); fillDecodingErrors(&(outputByPos->renderBuffer)); @@ -337,7 +336,7 @@ const VideoRenderBuffer* VideoDecoderBase::getOutput(bool draining, VideoErrorBu } } //VTRACE("Output POC %d for display (pts = %.2f)", output->pictureOrder, output->renderBuffer.timeStamp/1E6); - vaStatus = vaSetTimestampForSurface(mVADisplay, output->renderBuffer.surface, output->renderBuffer.timeStamp); + vaSetTimestampForSurface(mVADisplay, output->renderBuffer.surface, output->renderBuffer.timeStamp); if (useGraphicBuffer && !mUseGEN) { vaSyncSurface(mVADisplay, output->renderBuffer.surface); @@ -767,7 +766,6 @@ exit: Decode_Status VideoDecoderBase::setupVA(uint32_t numSurface, VAProfile profile, uint32_t numExtraSurface) { VAStatus vaStatus = VA_STATUS_SUCCESS; Decode_Status status; - VAConfigAttrib attrib; if (mVAStarted) { return DECODE_SUCCESS; @@ -846,6 +844,7 @@ Decode_Status VideoDecoderBase::setupVA(uint32_t numSurface, VAProfile profile, status = getCodecSpecificConfigs(profile, &mVAConfig); CHECK_STATUS("getCodecSpecificAttributes"); #else + VAConfigAttrib attrib; //We are requesting RT attributes attrib.type = VAConfigAttribRTFormat; attrib.value = VA_RT_FORMAT_YUV420; @@ -1147,7 +1146,6 @@ Decode_Status VideoDecoderBase::getRawDataFromSurface(VideoRenderBuffer *renderB } VAStatus vaStatus; - VAImageFormat imageFormat; VAImage vaImage; vaStatus = vaSyncSurface(renderBuffer->display, renderBuffer->surface); CHECK_VA_STATUS("vaSyncSurface"); diff --git a/videodecoder/securevideo/moorefield/VideoDecoderAVCSecure.cpp b/videodecoder/securevideo/moorefield/VideoDecoderAVCSecure.cpp index 2867ad9..fe980bc 100644 --- a/videodecoder/securevideo/moorefield/VideoDecoderAVCSecure.cpp +++ b/videodecoder/securevideo/moorefield/VideoDecoderAVCSecure.cpp @@ -223,7 +223,6 @@ Decode_Status VideoDecoderAVCSecure::processClassicInputBuffer(VideoDecodeBuffer uint8_t naluType = 0; int32_t num_nalus; - int32_t nalu_offset; int32_t offset; uint8_t *data_src; uint8_t *nalu_data; |