diff -Nru gst-plugins-good0.10-0.10.25/debian/changelog gst-plugins-good0.10-0.10.25/debian/changelog --- gst-plugins-good0.10-0.10.25/debian/changelog 2010-09-20 10:43:03.000000000 +0200 +++ gst-plugins-good0.10-0.10.25/debian/changelog 2010-09-24 20:16:52.000000000 +0200 @@ -1,3 +1,10 @@ +gst-plugins-good0.10 (0.10.25-4ubuntu2) maverick; urgency=low + + * debian/patches/05_flvdemux-adjust-pts.patch: + + Patch from upstream GIT to fix jerky h.264 video playback. + + -- Nicolas Delvaux Fri, 24 Sep 2010 20:14:05 +0200 + gst-plugins-good0.10 (0.10.25-4ubuntu1) maverick; urgency=low * Backport Debian changes. diff -Nru gst-plugins-good0.10-0.10.25/debian/patches/05_flvdemux-adjust-pts.patch gst-plugins-good0.10-0.10.25/debian/patches/05_flvdemux-adjust-pts.patch --- gst-plugins-good0.10-0.10.25/debian/patches/05_flvdemux-adjust-pts.patch 1970-01-01 01:00:00.000000000 +0100 +++ gst-plugins-good0.10-0.10.25/debian/patches/05_flvdemux-adjust-pts.patch 2010-09-24 18:20:48.000000000 +0200 @@ -0,0 +1,32 @@ +From 9e7b890a22507f06a34ed7f7956fb02392348187 Mon Sep 17 00:00:00 2001 +From: Wim Taymans +Date: Thu, 23 Sep 2010 14:46:31 +0000 +Subject: flvdemux: parse and use cts + +For H264, there is an extra header containing the CTS, which is a +timestamp offset that should be applied to the PTS. +Parse this value and use it to adjust the pts. +--- +diff --git a/gst/flv/gstflvdemux.c b/gst/flv/gstflvdemux.c +index 4049939..e22eca7 100644 +--- a/gst/flv/gstflvdemux.c ++++ b/gst/flv/gstflvdemux.c +@@ -1084,7 +1084,16 @@ gst_flv_demux_parse_tag_video (GstFlvDem + if (codec_tag == 4 || codec_tag == 5) { + codec_data = 2; + } else if (codec_tag == 7) { ++ gint32 cts; ++ + codec_data = 5; ++ ++ cts = GST_READ_UINT24_BE (data + 9); ++ cts = (cts + 0xff800000) ^ 0xff800000; ++ ++ GST_LOG_OBJECT (demux, "got cts %d", cts); ++ ++ pts = pts + cts; + } + + GST_LOG_OBJECT (demux, "video tag with codec tag %u, keyframe (%d) " +-- +cgit v0.8.3-6-g21f6 diff -Nru gst-plugins-good0.10-0.10.25/debian/patches/series gst-plugins-good0.10-0.10.25/debian/patches/series --- gst-plugins-good0.10-0.10.25/debian/patches/series 2010-09-17 13:34:24.000000000 +0200 +++ gst-plugins-good0.10-0.10.25/debian/patches/series 2010-09-24 20:12:38.000000000 +0200 @@ -3,5 +3,6 @@ 03_pulse-rank.patch 04_qtdemux-eos-handling.patch 04_move_farsight_plugins_to_good.patch +05_flvdemux-adjust-pts.patch 99_autoreconf.patch 99_ltmain_as-needed.patch