aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2007-03-13 00:02:55 +0000
committerAurelien Jacobs <aurel@gnuage.org>2007-03-13 00:02:55 +0000
commit7fde6331a76ad273e9be746bc7f9b06fd3d66619 (patch)
tree213c220d56d87f59144dac5b4e88cda0c84842bd
parent25f2b76fdb741316eb1b98fadc5d4062ccec167b (diff)
downloadffmpeg-7fde6331a76ad273e9be746bc7f9b06fd3d66619.tar.gz
calculate default_duration for AAC tracks
Originally committed as revision 8364 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/matroska.c1
1 files changed, 1 insertions, 0 deletions
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) {