提交 e61efa24 编写于 作者: L Lennert Buytenhek 提交者: Michael Niedermayer

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
上级 5bd11e31
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册