Loading media/libstagefright/codecs/mp3dec/src/pvmp3_decode_header.cpp +4 −2 Original line number Diff line number Diff line Loading @@ -122,8 +122,10 @@ ERROR_CODE pvmp3_decode_header(tmp3Bits *inputStream, /* * Verify that at least the header is complete * Note that SYNC_WORD_LNGTH is in unit of bits, but inputBufferCurrentLength * is in unit of bytes. */ if (inputStream->inputBufferCurrentLength < (SYNC_WORD_LNGTH + 21)) if (inputStream->inputBufferCurrentLength < ((SYNC_WORD_LNGTH + 21) >> 3)) { return NO_ENOUGH_MAIN_DATA_ERROR; } Loading Loading
media/libstagefright/codecs/mp3dec/src/pvmp3_decode_header.cpp +4 −2 Original line number Diff line number Diff line Loading @@ -122,8 +122,10 @@ ERROR_CODE pvmp3_decode_header(tmp3Bits *inputStream, /* * Verify that at least the header is complete * Note that SYNC_WORD_LNGTH is in unit of bits, but inputBufferCurrentLength * is in unit of bytes. */ if (inputStream->inputBufferCurrentLength < (SYNC_WORD_LNGTH + 21)) if (inputStream->inputBufferCurrentLength < ((SYNC_WORD_LNGTH + 21) >> 3)) { return NO_ENOUGH_MAIN_DATA_ERROR; } Loading