Skip to content
Snippets Groups Projects
Commit 6feb1de5 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

r/w -> rb/wb

Originally committed as revision 3774 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 114afa9c
No related branches found
No related tags found
No related merge requests found
...@@ -118,7 +118,7 @@ void pgmyuv_save(const char *filename, int w, int h, ...@@ -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); 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); fprintf(f, "P5\n%d %d\n%d\n", w, (h * 3) / 2, 255);
fwrite(lum_tab, 1, w * h, f); fwrite(lum_tab, 1, w * h, f);
h2 = h / 2; h2 = h / 2;
...@@ -231,7 +231,7 @@ void init_demo(const char *filename) { ...@@ -231,7 +231,7 @@ void init_demo(const char *filename) {
FILE *fichier; FILE *fichier;
fichier = fopen(filename,"r"); fichier = fopen(filename,"rb");
if (!fichier) { if (!fichier) {
perror(filename); perror(filename);
exit(1); exit(1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment