Browse Source

omg, major typo (fails if card supports rgb24)

Originally committed as revision 7580 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Alex Beregszaszi 18 years ago
parent
commit
453cd7a496
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavformat/grab.c

+ 2
- 1
libavformat/grab.c View File

@@ -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;
}
}
}
}


Loading…
Cancel
Save