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

Commit 744a392e authored by myfluxi's avatar myfluxi Committed by Steve Kondik
Browse files

libstagefright: Remove nBitPerSample CHECK

The check makes libstagefright segfault when apps use
8 bitsPerSample. We are setting 16 bits anyway later.

Change-Id: I67479db775ec1634131bd4b3ed4a27389f4399a8
parent 574e49db
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -3948,9 +3948,6 @@ status_t ACodec::getPortFormat(OMX_U32 portIndex, sp<AMessage> &notify) {
                    notify->setInt32("channel-count", params.nChannels);
                    notify->setInt32("sample-rate", params.nSamplingRate);

                    CHECK(params.nBitPerSample == 16u ||
                          params.nBitPerSample == 24u ||
                          params.nBitPerSample == 32u);
                    notify->setInt32("bits-per-sample", params.nBitPerSample);

                    if (mChannelMaskPresent) {