summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorogg.k.ogg.k <ogg.k.ogg.k@googlemail.com>2008-09-25 10:46:00 +0000
committerWim Taymans <wim.taymans@gmail.com>2008-09-25 10:46:00 +0000
commit6b3fb42a47b34debce38c637588422f61a72f48a (patch)
treec636eb4a398f7a9ad8c482a2280b12f7978a9563 /ext
parentc9566ebd68925e51d0648449afa26a2c911bd2c8 (diff)
ext/theora/theoraparse.c: Set the BOS flag on the BOS packet. Fixes #553244.
Original commit message from CVS: Patch by: ogg.k.ogg.k <ogg dot k dot ogg dot k at googlemail dot com> * ext/theora/theoraparse.c: (theora_parse_set_streamheader): Set the BOS flag on the BOS packet. Fixes #553244.
Diffstat (limited to 'ext')
-rw-r--r--ext/theora/theoraparse.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/ext/theora/theoraparse.c b/ext/theora/theoraparse.c
index 44423af1c..ae49ea657 100644
--- a/ext/theora/theoraparse.c
+++ b/ext/theora/theoraparse.c
@@ -317,6 +317,7 @@ theora_parse_set_streamheader (GstTheoraParse * parse)
for (i = 0; i < 3; i++) {
ogg_packet packet;
GstBuffer *buf;
+ int ret;
buf = parse->streamheader[i];
gst_buffer_set_caps (buf, GST_PAD_CAPS (parse->srcpad));
@@ -326,7 +327,12 @@ theora_parse_set_streamheader (GstTheoraParse * parse)
packet.granulepos = GST_BUFFER_OFFSET_END (buf);
packet.packetno = i + 1;
packet.e_o_s = 0;
- theora_decode_header (&parse->info, &parse->comment, &packet);
+ packet.b_o_s = (i == 0);
+ ret = theora_decode_header (&parse->info, &parse->comment, &packet);
+ if (ret < 0) {
+ GST_WARNING_OBJECT (parse, "Failed to decode Theora header %d: %d\n",
+ i + 1, ret);
+ }
}
parse->fps_n = parse->info.fps_numerator;