aac audio format handler: fix end of file timeout
authorAndre <maan@p133.(none)>
Wed, 17 May 2006 19:00:26 +0000 (21:00 +0200)
committerAndre <maan@p133.(none)>
Wed, 17 May 2006 19:00:26 +0000 (21:00 +0200)
20 x chunk_time is plenty, but lets be conservative here.

aac_afh.c

index 601621e..1f3ea6b 100644 (file)
--- a/aac_afh.c
+++ b/aac_afh.c
@@ -186,6 +186,7 @@ static int aac_get_file_info(FILE *file, char *info_str, long unsigned *frames,
                "audio_file_info3:\n",
                num_chunks,
                tv2ms(&af->chunk_tv));
+       tv_scale(20, &af->chunk_tv, &af->eof_tv);
        return 1;
 }
 
@@ -240,6 +241,5 @@ void aac_afh_init(struct audio_format_handler *p)
        af->read_chunk = aac_read_chunk;
        af->close_audio_file = aac_close_audio_file;
        af->get_header_info = NULL;
-       tv_scale(3, &af->chunk_tv, &af->eof_tv);
        af->suffixes = aac_suffixes;
 }