[gstreamer-bugs] [Bug 632070] New: qtmux: infinite loop

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Wed Oct 13 08:33:05 PDT 2010


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

           Summary: qtmux: infinite loop
    Classification: Desktop
           Product: GStreamer
           Version: git
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-plugins-bad
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: wingo at pobox.com
         QAContact: gstreamer-bugs at lists.sourceforge.net
      GNOME target: ---
     GNOME version: ---


Verily does qtmux do this:


  /* bring frame numerator into a range that ensures both reasonable resolution
   * as well as a fair duration */
  rate = adjust_rate (framerate_num);

after having pulled framerate_num from caps. adjust_rate is this:

/* scale rate up or down by factor of 10 to fit into [1000,10000] interval */
static guint32
adjust_rate (guint64 rate)
{
  while (rate >= 10000)
    rate /= 10;

  while (rate < 1000)
    rate *= 10;

  return (guint32) rate;
}

Negative numerators are excluded by caps. Positive numerators work fine here.
But numerators of 0, on the other hand, do not :)

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