if (s->use_mmap) munmap(video_buf, gb_buffers.size);
static int grab_read_close(AVFormatContext *s1){    VideoData *s = s1->priv_data;    /* restore audio settings */    ioctl(s->fd, VIDIOCSAUDIO, &audio_saved);    close(s->fd);    return 0;}