mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01: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
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue