1
0
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:
R. Brian Anderson 2006-06-15 15:15:20 +00:00 committed by Luca Abeni
parent 1449b7220d
commit eaddc4717b

View File

@ -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);