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

Commit 79b0b331 authored by Luis GarciaCalderon's avatar Luis GarciaCalderon Committed by Ricardo Cerqueira
Browse files

libstagefright: Check for H.264 profile when using sw decoder.

- Adds a check for the video profile when configuring the H.264
software decoder. Returns error unsupported if the profile
is not supported by the decoder.

Conflicts:

	media/libstagefright/OMXCodec.cpp

Change-Id: I38ad7db7bd7c623b26b75e4cf97db196b5bafe25
parent dfee45db
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -823,6 +823,12 @@ status_t OMXCodec::configureCodec(const sp<MetaData> &meta) {
                LOGE("Profile and/or level exceed the decoder's capabilities.");
                return ERROR_UNSUPPORTED;
            }
            if(!strcmp(mComponentName, "OMX.google.h264.decoder")
                && (profile != kAVCProfileBaseline)) {
                // The profile is unsupported by the decoder
                return ERROR_UNSUPPORTED;
            }

        } else if (meta->findData(kKeyVorbisInfo, &type, &data, &size)) {
            addCodecSpecificData(data, size);