Revision 5ef4fa87

View differences:

libavcodec/flacdec.c
639 639

  
640 640
    init_get_bits(&s->gb, buf, buf_size*8);
641 641

  
642
    /* check that there is at least the smallest decodable amount of data.
643
       this amount corresponds to the smallest valid FLAC frame possible. */
644
    if (buf_size < 24)
645
        goto end;
646

  
642 647
    /* check for inline header */
643 648
    if (show_bits_long(&s->gb, 32) == MKBETAG('f','L','a','C')) {
644 649
        if (metadata_parse(s)) {

Also available in: Unified diff