[gstreamer-bugs] [Bug 332339] FFmpeg muxers port to 0.10
GStreamer (bugzilla.gnome.org)
bugzilla-daemon at bugzilla.gnome.org
Wed Mar 1 09:26:15 PST 2006
Do not reply to this via email (we are currently unable to handle email
responses and they get discarded). You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=332339
GStreamer | gst-ffmpeg | Ver: HEAD CVS
------- Comment #9 from Michal Benes 2006-03-01 17:26 UTC -------
/* set time */
+ pkt.pts = GST_BUFFER_TIMESTAMP (buf) * 9 / (GST_SECOND / 10000);
Hi,
the following code is from our hacked vesrion. I have included it accidentaly.
The packet timestamping code should not be changed. I am sorry about that
pkt.pts = gst_ffmpeg_time_gst_to_ff (GST_BUFFER_TIMESTAMP (buf),
- ffmpegmux->context->streams[bufnum]->time_base);
- pkt.dts = pkt.pts;
+ ffmpegmux->context->streams[best_pad->padnum]->time_base);
+ if (GST_BUFFER_DATA (buf) != GST_BUFFER_MALLOCDATA (buf)) {
+ pkt.dts = *((GstClockTime *) GST_BUFFER_MALLOCDATA (buf))
+ * 9 / (GST_SECOND / 10000);
+ } else {
+ pkt.dts = pkt.pts;
+ }
+
Just leave
pkt.pts = gst_ffmpeg_time_gst_to_ff (GST_BUFFER_TIMESTAMP (buf),
ffmpegmux->context->streams[bufnum]->time_base);
pkt.dts = pkt.pts;
in the code.
--
Configure bugmail: http://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