mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
qtdemux: Fix frame rate cap regression
Look for a non-zero min_duration during initialisation to avoid incorrect frame rate caps.
This commit is contained in:
parent
0134e950fa
commit
e2f5409d40
1 changed files with 10 additions and 0 deletions
|
@ -5902,6 +5902,16 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
|
|||
|| !qtdemux_parse_samples (qtdemux, stream, 0))
|
||||
goto samples_failed;
|
||||
|
||||
/* look for non-zero min_duration as it is used to set the frame rate cap */
|
||||
if (G_UNLIKELY (stream->min_duration == 0)) {
|
||||
guint32 sample_num = 1;
|
||||
|
||||
while (sample_num <= stream->n_samples && stream->min_duration == 0) {
|
||||
if (!qtdemux_parse_samples (qtdemux, stream, sample_num))
|
||||
goto samples_failed;
|
||||
++sample_num;
|
||||
}
|
||||
}
|
||||
/* configure segments */
|
||||
if (!qtdemux_parse_segments (qtdemux, stream, trak))
|
||||
goto segments_failed;
|
||||
|
|
Loading…
Reference in a new issue