DO NOT MERGE: This particular RTSP server streams MPEG4-LATM audio with extra trailing bytes.

And now we're just ignoring them. Yay standards.

Change-Id: Ia8c0b9161e606152fb681f0dda3ba901954dc749
related-to-bug: 3353752
This commit is contained in:
Andreas Huber
2011-01-26 15:40:56 -08:00
parent 1d07b5bc9b
commit 2dce338e01

View File

@@ -359,7 +359,10 @@ sp<ABuffer> AMPEG4AudioAssembler::removeLATMFraming(const sp<ABuffer> &buffer) {
}
}
CHECK_EQ(offset, buffer->size());
if (offset < buffer->size()) {
LOGI("ignoring %d bytes of trailing data", buffer->size() - offset);
}
CHECK_LE(offset, buffer->size());
return out;
}