[Ffmpeg-devel] [PATCH] tiny patch for v4l2 initialization
R. Brian Anderson
andersrb
Thu Jun 15 16:44:02 CEST 2006
Here's a few lines to fix a segfault I encountered.
Regards,
Brian
-------------- next part --------------
Index: libavformat/v4l2.c
===================================================================
--- libavformat/v4l2.c (revision 5479)
+++ libavformat/v4l2.c (working copy)
@@ -457,7 +457,9 @@
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);
More information about the ffmpeg-devel
mailing list