• wm4's avatar
    hwcontext_vdpau: implement av_hwdevice_get_hwframe_constraints() · cbbb2067
    wm4 authored
    In addition, this does not allow creating frames contexts with sw_format
    for which no known transfer formats exist. In theory, we should check
    whether the chroma format (i.e. the sw_format) is supported at all by
    the vdpau driver, but checking for transfer formats has the same effect.
    
    Note that the pre-existing code adds 1 to priv->nb_pix_fmts[i] for
    unknown reason, and some checks need to account for that to check for
    empty lists. They are not off-by-one errors.
    cbbb2067
hwcontext_vdpau.c 16.1 KB