Loading media/libstagefright/AwesomePlayer.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -597,7 +597,7 @@ void AwesomePlayer::notifyListener_l(int msg, int ext1, int ext2) { bool AwesomePlayer::getBitrate(int64_t *bitrate) { off64_t size; if (mDurationUs >= 0 && mCachedSource != NULL if (mDurationUs > 0 && mCachedSource != NULL && mCachedSource->getSize(&size) == OK) { *bitrate = size * 8000000ll / mDurationUs; // in bits/sec return true; Loading Loading
media/libstagefright/AwesomePlayer.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -597,7 +597,7 @@ void AwesomePlayer::notifyListener_l(int msg, int ext1, int ext2) { bool AwesomePlayer::getBitrate(int64_t *bitrate) { off64_t size; if (mDurationUs >= 0 && mCachedSource != NULL if (mDurationUs > 0 && mCachedSource != NULL && mCachedSource->getSize(&size) == OK) { *bitrate = size * 8000000ll / mDurationUs; // in bits/sec return true; Loading