Skip to content

Commit 30b0bb4

Browse files
committed
stagefright amrwbenc: Remove a useless check
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
1 parent 6a300a5 commit 30b0bb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1702,7 +1702,7 @@ VO_U32 VO_API voAMRWB_SetInputData(
17021702
gData = (Coder_State *)hCodec;
17031703
stream = gData->stream;
17041704

1705-
if(NULL == pInput || NULL == pInput->Buffer || 0 > pInput->Length)
1705+
if(NULL == pInput || NULL == pInput->Buffer)
17061706
{
17071707
return VO_ERR_INVALID_ARG;
17081708
}

0 commit comments

Comments
 (0)