Mercurial > mplayer.hg
comparison libmpcodecs/vf_divtc.c @ 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 | 064be070d8c8 |
children | b4ce15212bfc |
comparison
equal
deleted
inserted
replaced
35174:cf26d64d5972 | 35175:4f7230f2e549 |
---|---|
412 } | 412 } |
413 sscanf(lbuf, "%x %d", cbuf+n, buf+n); | 413 sscanf(lbuf, "%x %d", cbuf+n, buf+n); |
414 n++; | 414 n++; |
415 } | 415 } |
416 | 416 |
417 if(!n) | 417 if(n <= 15) |
418 { | 418 { |
419 mp_msg(MSGT_VFILTER, MSGL_FATAL, "%s: Empty 2-pass log file.\n", | 419 mp_msg(MSGT_VFILTER, MSGL_FATAL, "%s: Empty 2-pass log file.\n", |
420 vf_info_divtc.name); | 420 vf_info_divtc.name); |
421 free(buf); | 421 free(buf); |
422 free(cbuf); | 422 free(cbuf); |