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

Commit 2a7aaff5 authored by Wonsik Kim's avatar Wonsik Kim Committed by Automerger Merge Worker
Browse files

Merge "Fix seek error in loop mode." into main am: 74656ddd am: 8056af66

parents 19af5994 8056af66
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -469,11 +469,12 @@ void C2SoftMpeg4Dec::process(
        mInitialized = false;
    }

    bool codecConfig = (work->input.flags & C2FrameData::FLAG_CODEC_CONFIG) != 0;

    if (!mInitialized) {
        uint8_t *vol_data[1]{};
        int32_t vol_size = 0;

        bool codecConfig = (work->input.flags & C2FrameData::FLAG_CODEC_CONFIG) != 0;
        if (codecConfig || volHeader) {
            vol_data[0] = bitstream;
            vol_size = inSize;
@@ -512,11 +513,12 @@ void C2SoftMpeg4Dec::process(
                return;
            }
        }
    }

    if (codecConfig) {
        fillEmptyWork(work);
        return;
    }
    }

    size_t inPos = 0;
    while (inPos < inSize) {