Skip to content

Incorrect display if MMAL_DISPLAYREGION_T.pixel_x / pixel_y are too high #525

@ghost

Description

If both pixel_x and pixel_y are set to 2822400, then it appears the video is stretched to display size. It works when limiting the maximum value. (I tried setting both to 16000, which appeared to work.)

Some sort of overflow or overflow check in the firmware? It also ignores the bounds set by MMAL_DISPLAY_SET_DEST_RECT, so something strange must be going on here. (I'm not setting the mode or noaspect fields.)

This is trivial to work around (I'll just limit both fields to 16000), but I thought I'd report it.

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