mencoder psnr segfaults on readonly fs patch by (Fabio Russo <f.russo at sosinformatica dot com>)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12872 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
michael
2004-07-20 12:06:30 +00:00
parent ecc23a7979
commit a8059efeeb
+2
View File
@@ -802,6 +802,8 @@ static int put_image(struct vf_instance_s* vf, mp_image_t *mpi){
if(!fvstats) {
perror("fopen");
lavc_param_psnr=0; // disable block
mp_msg(MSGT_MENCODER,MSGL_ERR,"Can't open %s for writing. Check your permissions.\n",filename);
return 0;
/*exit(1);*/
}
}