[FFmpeg-cvslog] r19756 - trunk/libavdevice/vfwcap.c

ramiro subversion
Fri Sep 4 18:31:21 CEST 2009


Author: ramiro
Date: Fri Sep  4 18:31:21 2009
New Revision: 19756

Log:
Use if(0){} instead of #if 0 to prevent debug code to rot.

Modified:
   trunk/libavdevice/vfwcap.c

Modified: trunk/libavdevice/vfwcap.c
==============================================================================
--- trunk/libavdevice/vfwcap.c	Fri Sep  4 02:57:20 2009	(r19755)
+++ trunk/libavdevice/vfwcap.c	Fri Sep  4 18:31:21 2009	(r19756)
@@ -294,7 +294,7 @@ static int vfw_read_header(AVFormatConte
     bi->bmiHeader.biWidth  = width ;
     bi->bmiHeader.biHeight = height;
 
-#if 0
+    if (0) {
     /* For testing yet unsupported compressions
      * Copy these values from user-supplied verbose information */
     bi->bmiHeader.biWidth       = 320;
@@ -304,7 +304,7 @@ static int vfw_read_header(AVFormatConte
     bi->bmiHeader.biCompression = MKTAG('I','4','2','0');
     bi->bmiHeader.biSizeImage   = 115200;
     dump_bih(s, &bi->bmiHeader);
-#endif
+    }
 
     ret = SendMessage(ctx->hwnd, WM_CAP_SET_VIDEOFORMAT, bisize, (LPARAM) bi);
     if(!ret) {



More information about the ffmpeg-cvslog mailing list