Commit 7fde6331 authored by Aurelien Jacobs's avatar Aurelien Jacobs

calculate default_duration for AAC tracks

Originally committed as revision 8364 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 25f2b76f
...@@ -2313,6 +2313,7 @@ matroska_read_header (AVFormatContext *s, ...@@ -2313,6 +2313,7 @@ matroska_read_header (AVFormatContext *s,
} else { } else {
extradata_size = 2; extradata_size = 2;
} }
track->default_duration = 1024*1000 / audiotrack->internal_samplerate;
} }
else if (codec_id == CODEC_ID_TTA) { else if (codec_id == CODEC_ID_TTA) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment