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

Commit aac30c95 authored by Steve Kondik's avatar Steve Kondik
Browse files

stagefright: Fix AC3 playback

 * Skip setupAC3Codec in ACodec for non-Google components.

Change-Id: I5090485ba020f7ad1c0962fc977e38675b4c8314
parent 7ddd36e4
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1629,7 +1629,8 @@ status_t ACodec::configureCodec(
            msg->findInt32("bits-per-sample", &bitsPerSample);
            err = setupRawAudioFormat(kPortIndexInput, sampleRate, numChannels, bitsPerSample);
        }
    } else if (!strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_AC3)) {
    } else if (!strncmp(mComponentName.c_str(), "OMX.google.", 11)
            && !strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_AC3)) {
        int32_t numChannels;
        int32_t sampleRate;
        if (!msg->findInt32("channel-count", &numChannels)