[Bug 783449] libs: encoder: refactor buffer parameters assignation

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Jun 5 18:58:20 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=783449

--- Comment #4 from Víctor Manuel Jáquez Leal <vjaquez at igalia.com> ---
Created attachment 353222
  --> https://bugzilla.gnome.org/attachment.cgi?id=353222&action=edit
libs: encoder: vp8: fix frame rate calculation

According to the VA documentation:

     The framerate is specified as a number of frames per second,
     as a fraction.  The denominator of the fraction is given in
     the top half (the high two bytes) of the framerate field, and
     the numerator is given in the bottom half (the low two bytes).

     For example, if framerate is set to (100 << 16 | 750), this is
     750 / 100, hence 7.5fps.

     If the denominator is zero (the high two bytes are both zero)
     then it takes the value one instead, so the framerate is just
     the integer in the low 2 bytes.

This patch fixes the the framerate calculation in vp8 encoder
according to this.

-- 
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