summaryrefslogtreecommitdiff
path: root/tests/rotozoom.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-12-24 12:34:11 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-12-24 12:34:11 +0000
commit6feb1de50fc5de4d921876a57017b35359ddd0ab (patch)
tree4d70c1637d6e91250e309229b7d7934078886bba /tests/rotozoom.c
parent114afa9ce754d4a1146f5b47f25639280e6de1d6 (diff)
r/w -> rb/wb
Originally committed as revision 3774 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'tests/rotozoom.c')
-rw-r--r--tests/rotozoom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/rotozoom.c b/tests/rotozoom.c
index bbf96e138b..adbd0ae054 100644
--- a/tests/rotozoom.c
+++ b/tests/rotozoom.c
@@ -118,7 +118,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;
@@ -231,7 +231,7 @@ void init_demo(const char *filename) {
FILE *fichier;
- fichier = fopen(filename,"r");
+ fichier = fopen(filename,"rb");
if (!fichier) {
perror(filename);
exit(1);