Commit a92d2062 authored by Aurelien Jacobs's avatar Aurelien Jacobs

calculate default_duration according to framerate only when not already set

Originally committed as revision 10125 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 2f4d5971
......@@ -1099,6 +1099,7 @@ matroska_add_stream (MatroskaDemuxContext *matroska)
if ((res = ebml_read_float(matroska, &id,
&num)) < 0)
break;
if (!track->default_duration)
track->default_duration = 1000000000/(matroska->time_scale*num);
break;
}
......
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