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

Commit 59982857 authored by Mengjie Xie's avatar Mengjie Xie Committed by Marco Nelissen
Browse files

Add meta data extensions to support APE playback

To support APE playback, our APE decoder requires 2 parameters
"first_byte" and "curr_frame" to decode APE frame.

Bug: 143118093
Test: We test APE playback with our extractor and decoder and
it can work normally when it seeks during APE playback.
Change-Id: I47b83252187206a1660b63fe68396997869546c8
parent 04e4465a
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -183,6 +183,11 @@ status_t MediaTrackCUnwrapper::read(MediaBufferBase **buffer, const ReadOptions
            meta.setData(kKeyAudioPresentationInfo,
                    MetaDataBase::Type::TYPE_NONE, valbuf->data(), valbuf->size());
        }
        if (format->mFormat->findBuffer("csd-0", &valbuf)) {
            meta.setData(kKeyOpaqueCSD0,
                    MetaDataBase::Type::TYPE_NONE, valbuf->data(), valbuf->size());
        }

    } else {
        *buffer = nullptr;
    }