From 7fde6331a76ad273e9be746bc7f9b06fd3d66619 Mon Sep 17 00:00:00 2001 From: Aurelien Jacobs Date: Tue, 13 Mar 2007 00:02:55 +0000 Subject: [PATCH] calculate default_duration for AAC tracks Originally committed as revision 8364 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/matroska.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/matroska.c b/libavformat/matroska.c index b3ea7a056f..d1b76f50f2 100644 --- a/libavformat/matroska.c +++ b/libavformat/matroska.c @@ -2313,6 +2313,7 @@ matroska_read_header (AVFormatContext *s, } else { extradata_size = 2; } + track->default_duration = 1024*1000 / audiotrack->internal_samplerate; } else if (codec_id == CODEC_ID_TTA) {