comparison flacdec.c @ 9138:063854fdfe73 libavcodec

flacdec: There is an even smaller FLAC frame size possibility.
author jbr
date Thu, 05 Mar 2009 02:36:17 +0000
parents f32faa6e149b
children 4564ec1f21b0
comparison
equal deleted inserted replaced
9137:f32faa6e149b 9138:063854fdfe73
649 } 649 }
650 } 650 }
651 651
652 /* check that there is at least the smallest decodable amount of data. 652 /* check that there is at least the smallest decodable amount of data.
653 this amount corresponds to the smallest valid FLAC frame possible. */ 653 this amount corresponds to the smallest valid FLAC frame possible. */
654 if (buf_size < 16) 654 if (buf_size < 11)
655 goto end; 655 goto end;
656 656
657 /* check for inline header */ 657 /* check for inline header */
658 if (AV_RB32(buf) == MKBETAG('f','L','a','C')) { 658 if (AV_RB32(buf) == MKBETAG('f','L','a','C')) {
659 if (!s->got_streaminfo && parse_streaminfo(s, buf, buf_size)) { 659 if (!s->got_streaminfo && parse_streaminfo(s, buf, buf_size)) {