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

Commit def29061 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "CCodec: Fix null check" am: 77a7eeff

Original change: https://android-review.googlesource.com/c/platform/frameworks/av/+/1850314

Change-Id: Iaa1990e9de45421d8eeadd0923398ef17b2cc0f2
parents 0db0cf02 77a7eeff
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -233,7 +233,7 @@ bool OutputBuffers::convert(
    if (!srcBuffer) {
        return false;
    }
    if (!dst) {
    if (!*dst) {
        *dst = new Codec2Buffer(
                mFormat,
                new ABuffer(mDataConverter->targetSize(srcBuffer->size())));
+1 −1
Original line number Diff line number Diff line
@@ -385,7 +385,7 @@ protected:
    void submit(const sp<MediaCodecBuffer> &buffer);

    /**
     * Apply DataConverter from |src| to |*dst| if needed. If |dst| is nullptr,
     * Apply DataConverter from |src| to |*dst| if needed. If |*dst| is nullptr,
     * a new buffer is allocated.
     *
     * Returns true if conversion was needed and executed; false otherwise.