Commit 0cd0c565 authored by stefano's avatar stefano

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.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14246 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 59f4f578
...@@ -258,7 +258,6 @@ static int grab_read_header(AVFormatContext *s1, AVFormatParameters *ap) ...@@ -258,7 +258,6 @@ static int grab_read_header(AVFormatContext *s1, AVFormatParameters *ap)
fail: fail:
if (video_fd >= 0) if (video_fd >= 0)
close(video_fd); close(video_fd);
av_free(st);
return AVERROR(EIO); return AVERROR(EIO);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment