Revision e020dbd2

View differences:

libavformat/raw.c
434 434
    else                   return 0;
435 435
}
436 436

  
437
static int flac_probe(AVProbeData *p)
438
{
439
    if(memcmp(p->buf, "fLaC", 4)) return 0;
440
    else                          AVPROBE_SCORE_MAX / 2;
441
}
442

  
437 443
AVInputFormat shorten_demuxer = {
438 444
    "shn",
439 445
    "raw shorten",
......
450 456
    "flac",
451 457
    "raw flac",
452 458
    0,
453
    NULL,
459
    flac_probe,
454 460
    flac_read_header,
455 461
    raw_read_partial_packet,
456 462
    raw_read_close,

Also available in: Unified diff