[MPlayer-cvslog] r35419 - trunk/libmpcodecs/ve_xvid4.c
reimar
subversion at mplayerhq.hu
Sat Nov 10 19:52:13 CET 2012
Author: reimar
Date: Sat Nov 10 19:52:13 2012
New Revision: 35419
Log:
Do not attempt to write into a file if opening it failed.
Modified:
trunk/libmpcodecs/ve_xvid4.c
Modified: trunk/libmpcodecs/ve_xvid4.c
==============================================================================
--- trunk/libmpcodecs/ve_xvid4.c Sat Nov 10 19:48:41 2012 (r35418)
+++ trunk/libmpcodecs/ve_xvid4.c Sat Nov 10 19:52:13 2012 (r35419)
@@ -1378,8 +1378,7 @@ update_stats(xvid_mplayer_module_t *mod,
mod->max_framenum = mod->frames;
}
- if (xvidenc_psnr) {
- if (!mod->fvstats) {
+ if (xvidenc_psnr && !mod->fvstats) {
char filename[20];
time_t today2;
struct tm *today;
@@ -1392,7 +1391,8 @@ update_stats(xvid_mplayer_module_t *mod,
/* Disable PSNR file output so we don't get here again */
xvidenc_psnr = 0;
}
- }
+ }
+ if (xvidenc_psnr) {
fprintf (mod->fvstats, "%6d, %2d, %6d, %2.2f, %2.2f, %2.2f, %2.2f %c\n",
mod->frames,
stats->quant,
More information about the MPlayer-cvslog
mailing list