Commit 1ee65997 authored by lucabe's avatar lucabe

Fix segfault

Patch by R. Brian Anderson (andersrb AT cliftonlabs DOT com)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5480 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b596dac0
......@@ -457,7 +457,9 @@ static int v4l2_read_header(AVFormatContext *s1, AVFormatParameters *ap)
if (capabilities & V4L2_CAP_STREAMING) {
s->io_method = io_mmap;
res = mmap_init(s);
res = mmap_start(s);
if (res == 0) {
res = mmap_start(s);
}
} else {
s->io_method = io_read;
res = read_init(s);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment