diff options
author | Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org> | 2014-10-04 00:48:31 +0200 |
---|---|---|
committer | Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org> | 2014-10-04 00:48:31 +0200 |
commit | 6466e82390ccd7b3dbb4c03a716fd25f0cb9777a (patch) | |
tree | ae02e211323a00cfafe9d2440dac7ca464b0a246 /media | |
parent | c8871d2cce58f7fa0985d4ace5fec73d468b1afd (diff) | |
download | frameworks_av-6466e82390ccd7b3dbb4c03a716fd25f0cb9777a.zip frameworks_av-6466e82390ccd7b3dbb4c03a716fd25f0cb9777a.tar.gz frameworks_av-6466e82390ccd7b3dbb4c03a716fd25f0cb9777a.tar.bz2 |
Remove check for an impossible condition
offset_for_ref_frame is an array rather than a pointer - it can't be
NULL (and the check causes a warning in clang).
Change-Id: I9b96e1e723e3b8caebd41821137ed6fb669d8cd4
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
Diffstat (limited to 'media')
-rw-r--r-- | media/libstagefright/codecs/avc/enc/src/init.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/media/libstagefright/codecs/avc/enc/src/init.cpp b/media/libstagefright/codecs/avc/enc/src/init.cpp index c258b57..6e1413a 100644 --- a/media/libstagefright/codecs/avc/enc/src/init.cpp +++ b/media/libstagefright/codecs/avc/enc/src/init.cpp @@ -177,10 +177,6 @@ AVCEnc_Status SetEncodeParam(AVCHandle* avcHandle, AVCEncParams* encParam, seqParam->offset_for_non_ref_pic = extS->offset_for_non_ref_pic; seqParam->offset_for_top_to_bottom_field = extS->offset_for_top_to_bottom_field; seqParam->num_ref_frames_in_pic_order_cnt_cycle = extS->num_ref_frames_in_pic_order_cnt_cycle; - if (extS->offset_for_ref_frame == NULL) - { - return AVCENC_ENCPARAM_MEM_FAIL; - } for (ii = 0; ii < (int) extS->num_ref_frames; ii++) { seqParam->offset_for_ref_frame[ii] = extS->offset_for_ref_frame[ii]; |