diff options
author | Lennert Buytenhek <buytenh@math.leidenuniv.nl> | 2002-09-01 08:54:22 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-09-01 08:54:22 +0000 |
commit | e61efa2468e65fc664b824519e30998f1263cd6d (patch) | |
tree | 9d31c211577c89ed8f4c4283013c419196a0d321 | |
parent | 5bd11e314e3acb626edbd3f4560337639f4a07e1 (diff) | |
download | ffmpeg-e61efa2468e65fc664b824519e30998f1263cd6d.tar.gz |
unmap video buffers on close patch by (Lennert Buytenhek <buytenh at math dot leidenuniv dot nl>)
Originally committed as revision 891 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libav/grab.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libav/grab.c b/libav/grab.c index 86a9ea07c6..0f9312c586 100644 --- 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); |