[FFmpeg-devel] [PATCH] avdevice/fbdev: pass proper memory map length

Lukasz Marek lukasz.m.luki at gmail.com
Fri Oct 18 20:45:13 CEST 2013


Signed-off-by: Lukasz Marek <lukasz.m.luki at gmail.com>
---
 libavdevice/fbdev.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavdevice/fbdev.c b/libavdevice/fbdev.c
index 1156fb5..7edf10b 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;
-- 
1.7.10.4



More information about the ffmpeg-devel mailing list