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

Stefano Sabatini stefasab at gmail.com
Fri Oct 18 23:25:42 CEST 2013


On date Friday 2013-10-18 20:45:13 +0200, Lukasz Marek encoded:
> 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;

LGTM, will apply it soon.
-- 
FFmpeg = Fast and Fancy Moronic Plastic Extensive Goblin


More information about the ffmpeg-devel mailing list