*/
#include "avformat.h"
#include "ac3_parser.h"
+#include "raw.h"
#ifdef CONFIG_MUXERS
/* simple formats */
uint8_t *buf, *buf2, *end;
AC3HeaderInfo hdr;
- if(p->buf_size < 7)
- return 0;
-
max_frames = 0;
buf = p->buf;
end = buf + p->buf_size;
else return 0;
}
+static int flac_probe(AVProbeData *p)
+{
+ if(memcmp(p->buf, "fLaC", 4)) return 0;
+ else return AVPROBE_SCORE_MAX / 2;
+}
+
AVInputFormat shorten_demuxer = {
"shn",
"raw shorten",
"flac",
"raw flac",
0,
- NULL,
+ flac_probe,
flac_read_header,
raw_read_partial_packet,
raw_read_close,