Commit 63593f5f authored by Wim Taymans's avatar Wim Taymans
Browse files

oggdemux: use the chain begin_time instead of our counter

We update the passed begintime argument to narrow our search region in the
binary search. This means that it does not always contain the chain begin time
after a couple of bisects. Use the real chain->begin_time to bring the
granuletime to the time in the chain instead.

Fixes #610005
parent e5f96a7a
......@@ -1791,7 +1791,7 @@ do_binary_search (GstOggDemux * ogg, GstOggChain * chain, gint64 begin,
GST_TIME_FORMAT, granulepos, GST_TIME_ARGS (granuletime));
granuletime -= pad->start_time;
granuletime += begintime;
granuletime += chain->begin_time;
"found page with granule %" G_GINT64_FORMAT " and time %"
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