changeset 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
files flacdec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flacdec.c	Thu Mar 05 01:23:53 2009 +0000
+++ b/flacdec.c	Thu Mar 05 02:21:35 2009 +0000
@@ -651,7 +651,7 @@
 
     /* check that there is at least the smallest decodable amount of data.
        this amount corresponds to the smallest valid FLAC frame possible. */
-    if (buf_size < 24)
+    if (buf_size < 16)
         goto end;
 
     /* check for inline header */