[FFmpeg-devel] [FFmpeg-cvslog] avcodec/libdav1d: fix build after a recent API break

Nicolas George george at nsup.org
Wed Nov 14 17:38:30 EET 2018


James Almer (2018-11-14):
> -    res = dav1d_decode(dav1d->c, data, &p);
> +    res = dav1d_send_data(dav1d->c, data);
> +    if (res < 0) {
> +        if (res == -EINVAL)
> +            res = AVERROR_INVALIDDATA;
> +        if (res != -EAGAIN)
> +            return res;
> +    }
> +
> +    res = dav1d_get_picture(dav1d->c, &p);

I just noticed this: the lack of AVERROR() looks very suspicious. It
seems this library uses directly -errno values, which will coincide with
AVERROR() on most systems but not all.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20181114/748972e1/attachment.sig>


More information about the ffmpeg-devel mailing list