[FFmpeg-cvslog] lavd/fbdev: pass proper memory map length
Lukasz Marek
git at videolan.org
Fri Oct 18 23:41:31 CEST 2013
ffmpeg | branch: master | Lukasz Marek <lukasz.m.luki at gmail.com> | Fri Oct 18 20:45:13 2013 +0200| [1421ee263742b73bc6ff1ed32dd732360297b257] | committer: Stefano Sabatini
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 <lukasz.m.luki at gmail.com>
Signed-off-by: Stefano Sabatini <stefasab at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1421ee263742b73bc6ff1ed32dd732360297b257
---
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;
More information about the ffmpeg-cvslog
mailing list