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

Commit 66b89a62 authored by Andreas Huber's avatar Andreas Huber Committed by Android (Google) Code Review
Browse files

Merge "Apparently the TI video decoder only supports H.264 up to baseline...

Merge "Apparently the TI video decoder only supports H.264 up to baseline profile/level 3, not level 3.x as previously assumed." into kraken
parents 36921ad8 e2f85077
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -538,11 +538,12 @@ status_t OMXCodec::configureCodec(const sp<MetaData> &meta) {
            size -= length;
        }

        LOGV("AVC profile = %d (%s), level = %d",
             (int)profile, AVCProfileToString(profile), (int)level / 10);
        CODEC_LOGV(
                "AVC profile = %d (%s), level = %d",
                (int)profile, AVCProfileToString(profile), level);

        if (!strcmp(mComponentName, "OMX.TI.Video.Decoder")
            && (profile != kAVCProfileBaseline || level > 39)) {
            && (profile != kAVCProfileBaseline || level > 30)) {
            // This stream exceeds the decoder's capabilities. The decoder
            // does not handle this gracefully and would clobber the heap
            // and wreak havoc instead...