Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c7dbac57 authored by Andreas Huber's avatar Andreas Huber Committed by Android Git Automerger
Browse files

am 31eb1ac1: am 0324ce9a: Merge "Be more lenient when validating ESDS...

am 31eb1ac1: am 0324ce9a: 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

Merge commit '31eb1ac1'

* commit '31eb1ac1':
  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.
parents 1944cca6 31eb1ac1
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1273,6 +1273,14 @@ status_t MPEG4Extractor::updateAudioTrackInfoFromESDS_MPEG4Audio(
    hexdump(csd, csd_size);
#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) {
        return ERROR_MALFORMED;
    }