Commit cf5feeaa authored by conrad's avatar conrad

Only use theora 3.2.1 offset-by-1 if gp > 0

Fixes load/play behaviour with liboggplay for test case
Reported by Chris Pearce
parent 164e35e7
......@@ -80,7 +80,8 @@ oggz_metric_default_granuleshift (OGGZ * oggz, long serialno,
iframe = granulepos >> stream->granuleshift;
pframe = granulepos - (iframe << stream->granuleshift);
granulepos = (iframe + pframe) - stream->first_granule;
granulepos = iframe + pframe;
if (granulepos > 0) granulepos -= stream->first_granule;
units = granulepos * stream->granulerate_d / stream->granulerate_n;
......
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