[FFmpeg-cvslog] r14246 - trunk/libavdevice/v4l.c
stefano
subversion
Tue Jul 15 22:39:20 CEST 2008
Author: stefano
Date: Tue Jul 15 22:39:20 2008
New Revision: 14246
Log:
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.
Modified:
trunk/libavdevice/v4l.c
Modified: trunk/libavdevice/v4l.c
==============================================================================
--- trunk/libavdevice/v4l.c (original)
+++ trunk/libavdevice/v4l.c Tue Jul 15 22:39:20 2008
@@ -258,7 +258,6 @@ static int grab_read_header(AVFormatCont
fail:
if (video_fd >= 0)
close(video_fd);
- av_free(st);
return AVERROR(EIO);
}
More information about the ffmpeg-cvslog
mailing list