projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5bd11e3
)
unmap video buffers on close patch by (Lennert Buytenhek <buytenh at math dot leidenu...
author
Lennert Buytenhek
<buytenh@math.leidenuniv.nl>
Sun, 1 Sep 2002 08:54:22 +0000
(08:54 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 1 Sep 2002 08:54:22 +0000
(08:54 +0000)
Originally committed as revision 891 to svn://svn.ffmpeg.org/ffmpeg/trunk
libav/grab.c
patch
|
blob
|
history
diff --git
a/libav/grab.c
b/libav/grab.c
index 86a9ea07c6261ae2294031c26aec4cb2a6196a4e..0f9312c58618d7478ad38e7824092b32cf780ffe 100644
(file)
--- a/
libav/grab.c
+++ b/
libav/grab.c
@@
-306,6
+306,10
@@
static int grab_read_packet(AVFormatContext *s1, AVPacket *pkt)
static int grab_read_close(AVFormatContext *s1)
{
VideoData *s = s1->priv_data;
+
+ if (s->use_mmap)
+ munmap(video_buf, gb_buffers.size);
+
/* restore audio settings */
ioctl(s->fd, VIDIOCSAUDIO, &audio_saved);