# HG changeset patch # User michael # Date 1176032224 0 # Node ID 1aa1bc9c5be82949394d1d2af95a7af1de947acd # Parent 1a3c9056982aa2744af11065198a5f07914900ea factorize diff -r 1a3c9056982a -r 1aa1bc9c5be8 nsvdec.c --- a/nsvdec.c Sun Apr 08 11:34:15 2007 +0000 +++ b/nsvdec.c Sun Apr 08 11:37:04 2007 +0000 @@ -728,12 +728,9 @@ int i; // PRINT(("nsv_probe(), buf_size %d\n", p->buf_size)); /* check file header */ - if (p->buf[0] == 'N' && p->buf[1] == 'S' && - p->buf[2] == 'V' && p->buf[3] == 'f') - return AVPROBE_SCORE_MAX; /* streamed files might not have any header */ if (p->buf[0] == 'N' && p->buf[1] == 'S' && - p->buf[2] == 'V' && p->buf[3] == 's') + p->buf[2] == 'V' && (p->buf[3] == 'f' || p->buf[3] == 's')) return AVPROBE_SCORE_MAX; /* XXX: do streamed files always start at chunk boundary ?? */ /* or do we need to search NSVs in the byte stream ? */