changeset 1913:1c1df2f4090b libavformat

calculate default_duration for AAC tracks
author aurel
date Tue, 13 Mar 2007 00:02:55 +0000
parents 98a74cfd12d4
children 511723932287
files matroska.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/matroska.c	Tue Mar 13 00:01:24 2007 +0000
+++ b/matroska.c	Tue Mar 13 00:02:55 2007 +0000
@@ -2313,6 +2313,7 @@
                 } else {
                     extradata_size = 2;
                 }
+                track->default_duration = 1024*1000 / audiotrack->internal_samplerate;
             }
 
             else if (codec_id == CODEC_ID_TTA) {