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

Commit 74656ddd authored by Wonsik Kim's avatar Wonsik Kim Committed by Gerrit Code Review
Browse files

Merge "Fix seek error in loop mode." into main

parents 005302b9 d01e2598
Loading
Loading
Loading
Loading
+7 −5
Original line number Original line Diff line number Diff line
@@ -469,11 +469,12 @@ void C2SoftMpeg4Dec::process(
        mInitialized = false;
        mInitialized = false;
    }
    }


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

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


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

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


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