Commit 1421ee26 authored by Lukasz Marek's avatar Lukasz Marek Committed by 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: 's avatarLukasz Marek <lukasz.m.luki@gmail.com>
Signed-off-by: 's avatarStefano Sabatini <stefasab@gmail.com>
parent 8efed299
...@@ -231,7 +231,7 @@ static av_cold int fbdev_read_close(AVFormatContext *avctx) ...@@ -231,7 +231,7 @@ static av_cold int fbdev_read_close(AVFormatContext *avctx)
{ {
FBDevContext *fbdev = avctx->priv_data; FBDevContext *fbdev = avctx->priv_data;
munmap(fbdev->data, fbdev->frame_size); munmap(fbdev->data, fbdev->fixinfo.smem_len);
close(fbdev->fd); close(fbdev->fd);
return 0; return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment