[SCM] libav/experimental: use the correct file modes

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:37:55 UTC 2013


The following commit has been merged in the experimental branch:
commit baf23f0c104aad042c9a554dcf5ff14d92506585
Author: Mike Melanson <mike at multimedia.cx>
Date:   Wed Oct 15 01:22:50 2003 +0000

    use the correct file modes
    
    Originally committed as revision 2381 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/tests/audiogen.c b/tests/audiogen.c
index 4913a6c..b026a71 100644
--- a/tests/audiogen.c
+++ b/tests/audiogen.c
@@ -94,7 +94,7 @@ int main(int argc, char **argv)
         exit(1);
     }
     
-    outfile = fopen(argv[1], "w");
+    outfile = fopen(argv[1], "wb");
     if (!outfile) {
         perror(argv[1]);
         return 1;
diff --git a/tests/videogen.c b/tests/videogen.c
index 5f4ae3c..0a79243 100644
--- a/tests/videogen.c
+++ b/tests/videogen.c
@@ -92,7 +92,7 @@ void pgmyuv_save(const char *filename, int w, int h,
 
     rgb24_to_yuv420p(lum_tab, cb_tab, cr_tab, rgb_tab, w, h);
 
-    f = fopen(filename,"w");
+    f = fopen(filename,"wb");
     fprintf(f, "P5\n%d %d\n%d\n", w, (h * 3) / 2, 255);
     fwrite(lum_tab, 1, w * h, f);
     h2 = h / 2;

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list