Mercurial > libavformat.hg
changeset 1718:3eb35e92a29a libavformat
improve probe and give it the max score
author | michael |
---|---|
date | Tue, 23 Jan 2007 15:23:41 +0000 |
parents | 02b8757d2e72 |
children | f813f8755dd1 |
files | flvdec.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/flvdec.c Tue Jan 23 09:24:41 2007 +0000 +++ b/flvdec.c Tue Jan 23 15:23:41 2007 +0000 @@ -34,8 +34,8 @@ if (p->buf_size < 6) return 0; d = p->buf; - if (d[0] == 'F' && d[1] == 'L' && d[2] == 'V') { - return 50; + if (d[0] == 'F' && d[1] == 'L' && d[2] == 'V' && d[3] < 5 && d[5]==0) { + return AVPROBE_SCORE_MAX; } return 0; }