diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-04-08 11:37:04 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-04-08 11:37:04 +0000 |
commit | 65a00bd65a3619faf5c5fabbdb4029b36c045483 (patch) | |
tree | cbdea6ef2f9eaa0f20cd629f0414dd6ed9882a60 | |
parent | 87e8788680e16c51f6048af26f3f7830c35207a5 (diff) | |
download | ffmpeg-streaming-65a00bd65a3619faf5c5fabbdb4029b36c045483.zip ffmpeg-streaming-65a00bd65a3619faf5c5fabbdb4029b36c045483.tar.gz |
factorize
Originally committed as revision 8678 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/nsvdec.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libavformat/nsvdec.c b/libavformat/nsvdec.c index 988dab2..f751f60 100644 --- a/libavformat/nsvdec.c +++ b/libavformat/nsvdec.c @@ -728,12 +728,9 @@ static int nsv_probe(AVProbeData *p) 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 ? */ |