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 601621ed8c99ff22b72b89af3c11f810dd58936c..1f3ea6b3040dd9eafe52839a79931b9398c235f7 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;
 }