Commit eaddc471 authored by R. Brian Anderson's avatar R. Brian Anderson Committed by Luca Abeni

Fix segfault

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

Originally committed as revision 5480 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 1449b722
......@@ -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