Commit 219fe222 authored by Edward Hervey's avatar Edward Hervey
Browse files

theoradec: return GST_CLOCK_TIME_NONE for negative framecounts.

This fixes most seeking issues when used with gnonlin.
Fixes #543591
parent 30875be6
......@@ -255,6 +255,8 @@ _theora_granule_start_time (GstTheoraDec * dec, gint64 granulepos)
if ((framecount = _theora_granule_frame (dec, granulepos)) < 0)
return GST_CLOCK_TIME_NONE;
if (framecount < 0)
return GST_CLOCK_TIME_NONE;
return gst_util_uint64_scale_int (framecount * GST_SECOND,
dec->info.fps_denominator, dec->info.fps_numerator);
}
......
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