From 1421ee263742b73bc6ff1ed32dd732360297b257 Mon Sep 17 00:00:00 2001 From: Lukasz Marek Date: Fri, 18 Oct 2013 20:45:13 +0200 Subject: [PATCH] lavd/fbdev: pass proper memory map length fbdev->data was allocated with size fbdev->fixinfo.smem_len, release data in fbdev_read_close() using the same size. Signed-off-by: Lukasz Marek Signed-off-by: Stefano Sabatini --- libavdevice/fbdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavdevice/fbdev.c b/libavdevice/fbdev.c index 1156fb50a6..7edf10b9f6 100644 --- a/libavdevice/fbdev.c +++ b/libavdevice/fbdev.c @@ -231,7 +231,7 @@ static av_cold int fbdev_read_close(AVFormatContext *avctx) { FBDevContext *fbdev = avctx->priv_data; - munmap(fbdev->data, fbdev->frame_size); + munmap(fbdev->data, fbdev->fixinfo.smem_len); close(fbdev->fd); return 0;