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

Commit ec42fa2d authored by Manisha Jajoo's avatar Manisha Jajoo
Browse files

C2SoftFlacDec: add support to receive multiple CSDs

Bug: 184595426
Test: atest --iterations 10 android.mediav2.cts.CodecDecoderTest

Change-Id: I305d661656b3044aa840a5c9d550cb05a7b52b0f
parent 7d50550b
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -221,6 +221,11 @@ void C2SoftFlacDec::process(

    uint8_t *input = const_cast<uint8_t *>(rView.data() + inOffset);
    if (codecConfig) {
        if (mHasStreamInfo) {
            ALOGV("Ignore Codec Config");
            fillEmptyWork(work);
            return;
        }
        status_t decoderErr = mFLACDecoder->parseMetadata(input, inSize);
        if (decoderErr != OK && decoderErr != WOULD_BLOCK) {
            ALOGE("process: FLACDecoder parseMetaData returns error %d", decoderErr);