mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 05:45:58 +00:00
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.
This commit is contained in:
parent
c9566ebd68
commit
6b3fb42a47
2 changed files with 14 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
|||
2008-09-25 Wim Taymans <wim.taymans@collabora.co.uk>
|
||||
|
||||
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.
|
||||
|
||||
2008-09-23 Wim Taymans <wim.taymans@collabora.co.uk>
|
||||
|
||||
* gst-libs/gst/rtsp/gstrtspmessage.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;
|
||||
|
|
Loading…
Reference in a new issue