[Bug 681678] Port to gstreamer 1.0 API of the frei0r plugins (except frei0r mixer)

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Sep 28 01:39:51 PDT 2012


https://bugzilla.gnome.org/show_bug.cgi?id=681678
  GStreamer | gst-plugins-bad | git

Tim-Philipp Müller <t.i.m> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |t.i.m at zen.co.uk

--- Comment #11 from Tim-Philipp Müller <t.i.m at zen.co.uk> 2012-09-28 08:39:47 UTC ---
> +  GST_BUFFER_DURATION (buf) =
> +      gst_util_uint64_scale (self->n_frames, GST_SECOND * self->info.fps_d,
> +      self->info.fps_n) - GST_BUFFER_TIMESTAMP (buf);
> 
> shouldn't duration just be: gst_util_uint64_scale (GST_SECOND,
> self->info.fps_d, self->fps_n); ?

Nope, the existing code is fine, it makes sure you get a continuous perfectly
timestamped stream without rounding errors. So it's basically the same as:

 TIMESTAMP =  scale (n_frames, GST_SECOND * fps_d, fps_n)
 DURATION  =  scale (n_frames + 1, GST_SECOND * fps_d, fps_n) - TIMESTAMP

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list