changeset 35175:4f7230f2e549

Fix check for empty log file (n contains a start offset of 15).
author reimar
date Fri, 26 Oct 2012 18:05:30 +0000
parents cf26d64d5972
children 0a51b5a1478c
files libmpcodecs/vf_divtc.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_divtc.c	Thu Oct 25 21:53:53 2012 +0000
+++ b/libmpcodecs/vf_divtc.c	Fri Oct 26 18:05:30 2012 +0000
@@ -414,7 +414,7 @@
       n++;
       }
 
-   if(!n)
+   if(n <= 15)
       {
       mp_msg(MSGT_VFILTER, MSGL_FATAL, "%s: Empty 2-pass log file.\n",
              vf_info_divtc.name);