diff options
author | Brian Carlstrom <bdc@google.com> | 2015-06-13 12:01:33 -0700 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2015-06-15 13:27:30 -0700 |
commit | b673023ba30b7526d71576b55f46d036533408cb (patch) | |
tree | 860e3fe98e5dff86f2f9f716199f16df98610293 | |
parent | e49805dc8466486fa2632c9ceb8a197cb67d8932 (diff) | |
download | android_hardware_intel_common_omx-components-b673023ba30b7526d71576b55f46d036533408cb.tar.gz android_hardware_intel_common_omx-components-b673023ba30b7526d71576b55f46d036533408cb.tar.bz2 android_hardware_intel_common_omx-components-b673023ba30b7526d71576b55f46d036533408cb.zip |
Fix clang build issue with unused argument
BUG: 21777583
Change-Id: I919dc4f9d4bd35aa8ec717f3ca18fc6e2215c59f
(cherry picked from commit 70891a61fbe9d711b5786b4026753d0c74c8fe0a)
-rw-r--r-- | videocodec/OMXVideoDecoderBase.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/videocodec/OMXVideoDecoderBase.cpp b/videocodec/OMXVideoDecoderBase.cpp index 12ad93c..144575e 100644 --- a/videocodec/OMXVideoDecoderBase.cpp +++ b/videocodec/OMXVideoDecoderBase.cpp @@ -1201,7 +1201,6 @@ OMX_ERRORTYPE OMXVideoDecoderBase::SetMaxOutputBufferCount(OMX_PARAM_PORTDEFINIT uint32_t OMXVideoDecoderBase::getStride(uint32_t format, uint32_t width) { uint32_t stride = 0; - format = format; if (width <= 512) stride = 512; @@ -1213,6 +1212,8 @@ uint32_t OMXVideoDecoderBase::getStride(uint32_t format, uint32_t width) { if (format == HAL_PIXEL_FORMAT_NV12_X_TILED_INTEL) { stride = 2048; } +#else + (void)format; #endif } else if (width <= 2048) stride = 2048; |