[FFmpeg-devel] [PATCH] lavu: Add DRM hwcontext
Jorge Ramirez
jorge.ramirez-ortiz at linaro.org
Fri Sep 1 20:59:00 EEST 2017
On 09/01/2017 05:44 PM, LongChair . wrote:
> +
> +static void drm_unmap_frame(AVHWFramesContext *hwfc,
> + HWMapDescriptor *hwmap)
> +{
> + DRMMapping *map = hwmap->priv;
> + int i;
> +
> + for (i = 0; i < map->nb_regions; i++) {
> + if (map->address[i])
> + munmap(map->address[i], map->length[i]);
do we need to check the return value of the call?
also if map->address[i] == NULL, is that not a warning of something
that went wrong?
> + }
> +
> + av_free(map);
> +}
More information about the ffmpeg-devel
mailing list