mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
oggmux: headers should always have granpos 0
https://bugzilla.gnome.org/show_bug.cgi?id=656775
This commit is contained in:
parent
30236ddfd3
commit
3fe42b8e7e
1 changed files with 2 additions and 6 deletions
|
@ -1198,9 +1198,7 @@ gst_ogg_mux_send_headers (GstOggMux * mux)
|
|||
/* create a packet from the buffer */
|
||||
packet.packet = GST_BUFFER_DATA (buf);
|
||||
packet.bytes = GST_BUFFER_SIZE (buf);
|
||||
packet.granulepos = GST_BUFFER_OFFSET_END (buf);
|
||||
if (packet.granulepos == -1)
|
||||
packet.granulepos = 0;
|
||||
packet.granulepos = 0;
|
||||
/* mark BOS and packet number */
|
||||
packet.b_o_s = (pad->packetno == 0);
|
||||
packet.packetno = pad->packetno++;
|
||||
|
@ -1267,9 +1265,7 @@ gst_ogg_mux_send_headers (GstOggMux * mux)
|
|||
/* create a packet from the buffer */
|
||||
packet.packet = GST_BUFFER_DATA (buf);
|
||||
packet.bytes = GST_BUFFER_SIZE (buf);
|
||||
packet.granulepos = GST_BUFFER_OFFSET_END (buf);
|
||||
if (packet.granulepos == -1)
|
||||
packet.granulepos = 0;
|
||||
packet.granulepos = 0;
|
||||
/* mark BOS and packet number */
|
||||
packet.b_o_s = (pad->packetno == 0);
|
||||
packet.packetno = pad->packetno++;
|
||||
|
|
Loading…
Reference in a new issue