diff options
author | Mike Melanson <mike@multimedia.cx> | 2003-10-15 05:22:50 +0400 |
---|---|---|
committer | Mike Melanson <mike@multimedia.cx> | 2003-10-15 05:22:50 +0400 |
commit | baf23f0c104aad042c9a554dcf5ff14d92506585 (patch) | |
tree | 49a512f6c4eb19d1709952c051226e19b5099e41 /tests/videogen.c | |
parent | ffaa816ee3d4654b3082b90f5e02d5d71fae5cfb (diff) |
use the correct file modes
Originally committed as revision 2381 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'tests/videogen.c')
-rw-r--r-- | tests/videogen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/videogen.c b/tests/videogen.c index 5f4ae3c0fa..0a7924301b 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; |