[Ffmpeg-cvslog] r7580 - trunk/libavformat/grab.c

alex subversion
Thu Jan 18 16:42:26 CET 2007


Author: alex
Date: Thu Jan 18 16:42:25 2007
New Revision: 7580

Modified:
   trunk/libavformat/grab.c

Log:
omg, major typo (fails if card supports rgb24)

Modified: trunk/libavformat/grab.c
==============================================================================
--- trunk/libavformat/grab.c	(original)
+++ trunk/libavformat/grab.c	Thu Jan 18 16:42:25 2007
@@ -174,12 +174,13 @@
                 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;
+                }
             }
         }
     }




More information about the ffmpeg-cvslog mailing list