Skip to content

After the commit 986bd65b7111, decoding frequently fails with error. #3705

Closed
@tyan0

Description

After the commit 986bd65, decoding frequently fails with the error like:
[OpenH264] this = 0x0xa0010d6b0, Error:DecodeCurrentAccessUnit()::::::PrefetchPic ERROR, pSps->iNumRefFrames:3.

This caused if iPicBuffIdx is zero at:
986bd65#diff-089ebaf0325c2c30af67611943308f0621afbceb64450c668961b6bd1561b43fR1137

I think this line should be
if (iPicBuffIdx >= 0 && iPicBuffIdx < pPicBuff->iCapacity)
rather than
if (iPicBuffIdx > 0 && iPicBuffIdx < pPicBuff->iCapacity)
.

I hope this bug would be fixed in the next release.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions