Commit 959f8e6a authored by stefano's avatar stefano

Add missing check on the return value of the VIDIOCSWIN ioctl.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16360 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b9b511c8
......@@ -181,7 +181,10 @@ static int grab_read_header(AVFormatContext *s1, AVFormatParameters *ap)
s->video_win.chromakey = -1;
s->video_win.flags = 0;
ioctl(video_fd, VIDIOCSWIN, s->video_win);
if (ioctl(video_fd, VIDIOCSWIN, s->video_win) < 0) {
av_log(s1, AV_LOG_ERROR, "VIDIOCSWIN: %s\n", strerror(errno));
goto fail;
}
s->frame_format = pict.palette;
......
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