Mercurial > libavcodec.hg
comparison flacdec.c @ 9137:f32faa6e149b libavcodec
flacdec: 10l to me. I miscalculated the smallest FLAC frame. It is 16
bytes, not 24.
author | jbr |
---|---|
date | Thu, 05 Mar 2009 02:21:35 +0000 |
parents | ebad2cb9e015 |
children | 063854fdfe73 |
comparison
equal
deleted
inserted
replaced
9136:ebad2cb9e015 | 9137:f32faa6e149b |
---|---|
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 < 24) | 654 if (buf_size < 16) |
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)) { |