[FFmpeg-devel] [PATCH] lavu: Add DRM hwcontext
Jorge Ramirez
jorge.ramirez-ortiz at linaro.org
Fri Sep 1 21:01:19 EEST 2017
On 09/01/2017 05:44 PM, LongChair . wrote:
> +}
> +
> +static int drm_device_create(AVHWDeviceContext *hwdev, const char *device,
> + AVDictionary *opts, int flags)
> +{
> + AVDRMDeviceContext *hwctx = hwdev->hwctx;
> + drmVersionPtr version;
> +
> + hwctx->fd = open(device, O_RDWR);
> + if (hwctx->fd < 0)
> + return AVERROR_UNKNOWN;
return errno?
More information about the ffmpeg-devel
mailing list