summaryrefslogtreecommitdiff
path: root/libavformat/grab.c
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2007-01-18 15:42:25 +0000
committerAlex Beregszaszi <alex@rtfs.hu>2007-01-18 15:42:25 +0000
commit453cd7a49676e42f804d824d216da2778673d28e (patch)
treed59a2e7bdc192564ec437b2ba9e5ababc9d0f7b7 /libavformat/grab.c
parente2158da8cc3981718efc8e3fd85d6f47f97a620c (diff)
omg, major typo (fails if card supports rgb24)
Originally committed as revision 7580 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/grab.c')
-rw-r--r--libavformat/grab.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/grab.c b/libavformat/grab.c
index 99cbe2fefa..4f37b87fad 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;
+ }
}
}
}