Browse Source

Make v4l_read_header() don't free a stream in case of failure when

reading its header. The stream will be freed later in
av_open_input_stream(). Fix a segmentation fault due to a double free
on the same pointer.

Originally committed as revision 14246 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Stefano Sabatini 17 years ago
parent
commit
7c1d608ece
1 changed files with 0 additions and 1 deletions
  1. +0
    -1
      libavdevice/v4l.c

+ 0
- 1
libavdevice/v4l.c View File

@@ -258,7 +258,6 @@ static int grab_read_header(AVFormatContext *s1, AVFormatParameters *ap)
fail:
if (video_fd >= 0)
close(video_fd);
av_free(st);
return AVERROR(EIO);
}



Loading…
Cancel
Save