summaryrefslogtreecommitdiff
path: root/libavformat/oggdec.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2011-05-11 20:43:30 +0200
committerDiego Biurrun <diego@biurrun.de>2011-05-12 11:32:26 +0200
commitf95257d27c91c7e1981e1f6a53c7e9217a3fae98 (patch)
tree03bd52119d4cce44cb195876ec878184a9338540 /libavformat/oggdec.c
parentc8f487deae75d4f25c2ec39ab484c1075f909bbd (diff)
oggdec: simplify ogg_probe
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Diffstat (limited to 'libavformat/oggdec.c')
-rw-r--r--libavformat/oggdec.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c
index 07969c816f..bbd299d92d 100644
--- a/libavformat/oggdec.c
+++ b/libavformat/oggdec.c
@@ -642,12 +642,9 @@ static int ogg_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp
static int ogg_probe(AVProbeData *p)
{
- if (p->buf[0] == 'O' && p->buf[1] == 'g' &&
- p->buf[2] == 'g' && p->buf[3] == 'S' &&
- p->buf[4] == 0x0 && p->buf[5] <= 0x7 )
+ if (!memcmp("OggS", p->buf, 5) && p->buf[5] <= 0x7)
return AVPROBE_SCORE_MAX;
- else
- return 0;
+ return 0;
}
AVInputFormat ff_ogg_demuxer = {