diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2008-07-16 00:39:20 +0400 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2008-07-16 00:39:20 +0400 |
commit | 7c1d608ece947c49b1ebbba415fada965cb8960f (patch) | |
tree | 7b083dcec76e3778b13bb7b2897c93fb74afbe39 /libavdevice/v4l.c | |
parent | b0367ef00afe74f4fae1ff930ea53e88c46c3d52 (diff) |
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
Diffstat (limited to 'libavdevice/v4l.c')
-rw-r--r-- | libavdevice/v4l.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libavdevice/v4l.c b/libavdevice/v4l.c index 2f7fc6a1b8..8fed08c11d 100644 --- a/libavdevice/v4l.c +++ b/libavdevice/v4l.c @@ -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); } |