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);
+}
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to