ext/theora/theoraparse.c: Mark DELTA_UNIT on non-keyframes.
authorMichael Smith <msmith@xiph.org>
Tue, 6 Jun 2006 11:13:18 +0000 (11:13 +0000)
committerMichael Smith <msmith@xiph.org>
Tue, 6 Jun 2006 11:13:18 +0000 (11:13 +0000)
Original commit message from CVS:
* ext/theora/theoraparse.c: (theora_parse_drain_queue_prematurely),
(theora_parse_drain_queue):
Mark DELTA_UNIT on non-keyframes.

ChangeLog
common
ext/theora/theoraparse.c

index 2fea98aada29cd526bdf3835ee889fda1f3f9de9..5ad529e4b6b3ccdf6cfa059d0b87087a1935ed03 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-06-06  Michael Smith  <msmith@fluendo.com>
+
+       * ext/theora/theoraparse.c: (theora_parse_drain_queue_prematurely),
+       (theora_parse_drain_queue):
+         Mark DELTA_UNIT on non-keyframes.
+
 2006-06-03  Jan Schmidt  <thaytan@mad.scientist.com>
 
        * gst-libs/gst/audio/gstbaseaudiosink.c:
diff --git a/common b/common
index 80b4e2c08717159760ebaa40715f8919b3f77ba9..4282dfa89d50e80f59d4e1837af95fbf74e75d18 160000 (submodule)
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit 80b4e2c08717159760ebaa40715f8919b3f77ba9
+Subproject commit 4282dfa89d50e80f59d4e1837af95fbf74e75d18
index 592d452c4f25386a6c043b70ff0366fb31ca9198..a1e997def9a49a67f64ae50dd0549ffd22824c69 100644 (file)
@@ -319,6 +319,8 @@ theora_parse_drain_queue_prematurely (GstTheoraParse * parse)
     if (is_keyframe (buf))
       /* we have a keyframe */
       parse->prev_keyframe = parse->prev_frame;
+    else
+      GST_BUFFER_FLAGS (buf) |= GST_BUFFER_FLAG_DELTA_UNIT;
 
     if (parse->prev_keyframe < 0) {
       if (GST_BUFFER_OFFSET_END_IS_VALID (buf)) {
@@ -367,6 +369,8 @@ theora_parse_drain_queue (GstTheoraParse * parse, gint64 granulepos)
     if (is_keyframe (buf))
       /* we have a keyframe */
       parse->prev_keyframe = parse->prev_frame;
+    else
+      GST_BUFFER_FLAGS (buf) |= GST_BUFFER_FLAG_DELTA_UNIT;
 
     ret = theora_parse_push_buffer (parse, buf, parse->prev_keyframe,
         parse->prev_frame);