Commit 52530e63 authored by alex's avatar alex

omg, major typo (fails if card supports rgb24)

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7580 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f024bee2
...@@ -174,12 +174,13 @@ static int grab_read_header(AVFormatContext *s1, AVFormatParameters *ap) ...@@ -174,12 +174,13 @@ static int grab_read_header(AVFormatContext *s1, AVFormatParameters *ap)
pict.palette=VIDEO_PALETTE_RGB24; pict.palette=VIDEO_PALETTE_RGB24;
pict.depth=24; pict.depth=24;
ret = ioctl(video_fd, VIDIOCSPICT, &pict); ret = ioctl(video_fd, VIDIOCSPICT, &pict);
if (ret < 0) if (ret < 0) {
pict.palette=VIDEO_PALETTE_GREY; pict.palette=VIDEO_PALETTE_GREY;
pict.depth=8; pict.depth=8;
ret = ioctl(video_fd, VIDIOCSPICT, &pict); ret = ioctl(video_fd, VIDIOCSPICT, &pict);
if (ret < 0) if (ret < 0)
goto fail1; goto fail1;
}
} }
} }
} }
......
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