Merge "Be more lenient when validating ESDS information in mp4 audio tracks. Allow the absence of any codec specific data and assume that the mpeg4 headers are not lying to us." into gingerbread
This commit is contained in:
committed by
Android (Google) Code Review
commit
0324ce9a1e
@@ -1273,6 +1273,14 @@ status_t MPEG4Extractor::updateAudioTrackInfoFromESDS_MPEG4Audio(
|
|||||||
hexdump(csd, csd_size);
|
hexdump(csd, csd_size);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (csd_size == 0) {
|
||||||
|
// There's no further information, i.e. no codec specific data
|
||||||
|
// Let's assume that the information provided in the mpeg4 headers
|
||||||
|
// is accurate and hope for the best.
|
||||||
|
|
||||||
|
return OK;
|
||||||
|
}
|
||||||
|
|
||||||
if (csd_size < 2) {
|
if (csd_size < 2) {
|
||||||
return ERROR_MALFORMED;
|
return ERROR_MALFORMED;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user