Skip to content

Initializing dev->pix_format.width and dev->pix_format.height to zero #1

@Alienmaster

Description

@Alienmaster

Text to forward to upstream:

Hi,

while reviewing the v4l2loopback code we noticed the following initialization:

https://github.com/umlaeute/v4l2loopback/blob/d01c20cca58772e7b29faef6da393c919a4d531b/v4l2loopback.c#L2523-L2524

As both lines are initialized to 0 instead of the commented-out value we would have expected, we'd like to know if there's a special reason for why both values are initialized to 0 instead of V4L2LOOPBACK_SIZE_DEFAULT_WIDTH or _max_width and V4L2LOOPBACK_SIZE_DEFAULT_HEIGHT or _max_height respectively?

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