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
					R. Brian Anderson
				
			
				
					committed by
					
						 Luca Abeni
						Luca Abeni
					
				
			
			
				
	
			
			
			 Luca Abeni
						Luca Abeni
					
				
			
						parent
						
							1449b7220d
						
					
				
				
					commit
					eaddc4717b
				
			| @@ -457,7 +457,9 @@ static int v4l2_read_header(AVFormatContext *s1, AVFormatParameters *ap) | |||||||
|     if (capabilities & V4L2_CAP_STREAMING) { |     if (capabilities & V4L2_CAP_STREAMING) { | ||||||
|         s->io_method = io_mmap; |         s->io_method = io_mmap; | ||||||
|         res = mmap_init(s); |         res = mmap_init(s); | ||||||
|         res = mmap_start(s); |         if (res == 0) { | ||||||
|  |             res = mmap_start(s); | ||||||
|  |         } | ||||||
|     } else { |     } else { | ||||||
|         s->io_method = io_read; |         s->io_method = io_read; | ||||||
|         res = read_init(s); |         res = read_init(s); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user