mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Fix segfault
Patch by R. Brian Anderson (andersrb AT cliftonlabs DOT com) Originally committed as revision 5480 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
1449b7220d
commit
eaddc4717b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user