mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 21:51:09 +00:00
theoradec: return GST_CLOCK_TIME_NONE for negative framecounts.
This fixes most seeking issues when used with gnonlin. Fixes #543591
This commit is contained in:
parent
30875be668
commit
219fe22293
1 changed files with 2 additions and 0 deletions
|
@ -255,6 +255,8 @@ _theora_granule_start_time (GstTheoraDec * dec, gint64 granulepos)
|
||||||
if ((framecount = _theora_granule_frame (dec, granulepos)) < 0)
|
if ((framecount = _theora_granule_frame (dec, granulepos)) < 0)
|
||||||
return GST_CLOCK_TIME_NONE;
|
return GST_CLOCK_TIME_NONE;
|
||||||
|
|
||||||
|
if (framecount < 0)
|
||||||
|
return GST_CLOCK_TIME_NONE;
|
||||||
return gst_util_uint64_scale_int (framecount * GST_SECOND,
|
return gst_util_uint64_scale_int (framecount * GST_SECOND,
|
||||||
dec->info.fps_denominator, dec->info.fps_numerator);
|
dec->info.fps_denominator, dec->info.fps_numerator);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue