OSDN Git Service

stagefright amrwbenc: Remove a useless check
authorMartin Storsjo <martin@martin.st>
Thu, 12 Jan 2012 12:52:47 +0000 (14:52 +0200)
committerMartin Storsjo <martin@martin.st>
Fri, 24 Feb 2012 18:54:14 +0000 (20:54 +0200)
Since the Length field is unsigned, the comparison will always
be false. The corresponding code in the aac encoder doesn't have
any check for Length.

This avoids a warning about comparison always being false.

Change-Id: I57c28ff9d09cb9ac4effeaeb40db608ab976acc6

media/libstagefright/codecs/amrwbenc/src/voAMRWBEnc.c

index 0f4d689..ea9da52 100644 (file)
@@ -1702,7 +1702,7 @@ VO_U32 VO_API voAMRWB_SetInputData(
        gData = (Coder_State *)hCodec;
        stream = gData->stream;
 
-       if(NULL == pInput || NULL == pInput->Buffer || 0 > pInput->Length)
+       if(NULL == pInput || NULL == pInput->Buffer)
        {
                return VO_ERR_INVALID_ARG;
        }