Skip to content

Commit

Permalink
添加mode b,显示指明这是一个二进制文件
Browse files Browse the repository at this point in the history
  • Loading branch information
negier committed Dec 9, 2019
1 parent 6910431 commit d56932f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Code/pcm_mono_to_stereo.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ void pcmMonoToStereo(const char* pcmPath,const char* newPcmPath){
return;
}
FILE* pcm;
if((pcm = fopen(pcmPath,"r"))==NULL){
if((pcm = fopen(pcmPath,"rb"))==NULL){
printf("传入的pcm文件地址有误");
return;
}
Expand Down

0 comments on commit d56932f

Please sign in to comment.