mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Add missing check on the return value of the VIDIOCSWIN ioctl.
Originally committed as revision 16360 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
cb82a0736d
commit
faf67322dc
@ -181,7 +181,10 @@ static int grab_read_header(AVFormatContext *s1, AVFormatParameters *ap)
|
|||||||
s->video_win.chromakey = -1;
|
s->video_win.chromakey = -1;
|
||||||
s->video_win.flags = 0;
|
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;
|
s->frame_format = pict.palette;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user