Skip to content

Usage Fault in OpenH264 Integration on MIMXRT1176 #3879

@Pavanakumar777

Description

@Pavanakumar777

Hi,

I am using the OpenH264 decoder with the NXP MIMXRT1176 controller. I have successfully integrated the OpenH264 library, but the code encounters a Usage Fault in the WelsDecodeBs() function at the following line:
ST16(pDstNal + iDstIdx, 0);
Here, ST16 is defined as: #define ST16(a, b) ((uint16_t)(a)) = (b)

In this case, pDstNal is of type uint8_t*, and iDstIdx is a uint32_t offset. The fault likely occurs due to unaligned memory access, as the uint16_t write may not be aligned on a 2-byte boundary.

Also, could you please advise how much RAM memory is typically required for OpenH264 decoding? My custom board has 16 MB of SDRAM, and I want to ensure that is sufficient for reliable decoding.

Best regards,
Pavanakumar

Metadata

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