changeset 7273:3511d8cdd310 libavcodec

Make our flac decoder decode all the data at EOF. Fixes issue524
author michael
date Sun, 13 Jul 2008 21:51:29 +0000
parents 643c85503f1f
children 25914f8a9bb3
files flac.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flac.c	Sun Jul 13 21:44:00 2008 +0000
+++ b/flac.c	Sun Jul 13 21:51:29 2008 +0000
@@ -624,7 +624,7 @@
             buf_size += s->bitstream_size;
             s->bitstream_size= buf_size;
 
-            if(buf_size < s->max_framesize){
+            if(buf_size < s->max_framesize && input_buf_size){
 //                printf("wanna more data ...\n");
                 return input_buf_size;
             }
@@ -773,6 +773,7 @@
     NULL,
     flac_decode_close,
     flac_decode_frame,
+    CODEC_CAP_DELAY,
     .flush= flac_flush,
     .long_name= NULL_IF_CONFIG_SMALL("FLAC (Free Lossless Audio Codec)"),
 };