On 20 Mar 2014, at 18:03, Rémi Denis-Courmont <[email protected]> wrote:

> +int av_vdpau_get_level(AVCodecContext *avctx, unsigned *levelp)
> +{
> +    unsigned level = avctx->level;
> +
> +    if (level == FF_LEVEL_UNKNOWN)
> +        return AVERROR(EINVAL);

FWIW, AVCodecContext.level is signed, and FF_LEVEL_UNKNOWN is negative (-99).

Tim
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to