• mrlika's avatar
    lavd/v4l2: do not fail when VIDIOC_ENUMSTD returns EINVAL without a valid match · ed725425
    mrlika authored
    With some (buggy) drivers, the VIDIOC_G_STD ioctl returns a std_id that cannot
    be matched with any of the enumerated v4l2_standard structures (for example
    std_id = 0 or std_id = 0xffffff). Do not fail when we reach the end of the
    enumeration without a valid match.
    
    Fixes ticket #2370
    
    Note: This commit message has been modified by Giorgio Vazzana, the original
    commit message was:
    
    "Fixed regression for mandatory VIDIOC_ENUMSTD support by v4l2"
    Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
    ed725425
v4l2.c 34.3 KB