diff options
author | Lukasz Marek <lukasz.m.luki@gmail.com> | 2013-10-18 20:45:13 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2013-10-18 23:23:23 +0200 |
commit | 1421ee263742b73bc6ff1ed32dd732360297b257 (patch) | |
tree | 577c209167aaaceed037906829428b8143865ee8 /libavdevice | |
parent | 8efed2993733bcd0d85a585c994ac404a1955e1a (diff) | |
download | ffmpeg-1421ee263742b73bc6ff1ed32dd732360297b257.tar.gz |
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@gmail.com>
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
Diffstat (limited to 'libavdevice')
-rw-r--r-- | libavdevice/fbdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |