[gstreamer-bugs] [Bug 595256] theoraenc: Buffer not time-contiguous with previous one

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Tue Sep 15 05:10:03 PDT 2009


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

--- Comment #4 from Marc-Andre Lureau <marcandre.lureau at gmail.com> 2009-09-15 12:09:56 UTC ---
ok, another way is to remove parenthesis around
((double)state->info.fps_denominator/state->info.fps_numerator))

the following ex demonstrate it:

#include <gst/gst.h>

int main()
{
  int i;
  double dbad, dgood;
  GstClockTime tbad, tgood;

  for (i = 0; i < 400; ++i) {
    dbad = i * ((double)1/30);
    dgood = i * (double)1/30;

    tbad = dbad * GST_SECOND;
    tgood = dgood * GST_SECOND;

    printf("%f %f\n", dbad, dgood);
    printf("bad %" GST_TIME_FORMAT "\n", GST_TIME_ARGS (tbad));
    printf("good %" GST_TIME_FORMAT "\n", GST_TIME_ARGS (tgood));

    if (tbad != tgood)
      return 1;
  }

  return 0;
}

However, I am not convinced that the bug comes from theora... but rather by
usage of the timestamp in gstreamer.

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