Commit 43e09e77 authored by aurel's avatar aurel

calculate default_duration according to framerate only when not already set

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10125 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 007d5a95
...@@ -1099,6 +1099,7 @@ matroska_add_stream (MatroskaDemuxContext *matroska) ...@@ -1099,6 +1099,7 @@ matroska_add_stream (MatroskaDemuxContext *matroska)
if ((res = ebml_read_float(matroska, &id, if ((res = ebml_read_float(matroska, &id,
&num)) < 0) &num)) < 0)
break; break;
if (!track->default_duration)
track->default_duration = 1000000000/(matroska->time_scale*num); track->default_duration = 1000000000/(matroska->time_scale*num);
break; 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