diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2007-01-18 15:42:25 +0000 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2007-01-18 15:42:25 +0000 |
commit | 453cd7a49676e42f804d824d216da2778673d28e (patch) | |
tree | d59a2e7bdc192564ec437b2ba9e5ababc9d0f7b7 /libavformat | |
parent | e2158da8cc3981718efc8e3fd85d6f47f97a620c (diff) | |
download | ffmpeg-streaming-453cd7a49676e42f804d824d216da2778673d28e.zip ffmpeg-streaming-453cd7a49676e42f804d824d216da2778673d28e.tar.gz |
omg, major typo (fails if card supports rgb24)
Originally committed as revision 7580 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/grab.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/grab.c b/libavformat/grab.c index 99cbe2f..4f37b87 100644 --- a/libavformat/grab.c +++ b/libavformat/grab.c @@ -174,12 +174,13 @@ static int grab_read_header(AVFormatContext *s1, AVFormatParameters *ap) pict.palette=VIDEO_PALETTE_RGB24; pict.depth=24; ret = ioctl(video_fd, VIDIOCSPICT, &pict); - if (ret < 0) + if (ret < 0) { pict.palette=VIDEO_PALETTE_GREY; pict.depth=8; ret = ioctl(video_fd, VIDIOCSPICT, &pict); if (ret < 0) goto fail1; + } } } } |