mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-23 06:26:23 +00:00
oggstream: add a flag to say whether start granule clamping is to be done
This commit is contained in:
parent
3cd045c189
commit
ba967d285a
2 changed files with 2 additions and 0 deletions
|
@ -1874,6 +1874,7 @@ setup_opus_mapper (GstOggStream * pad, ogg_packet * packet)
|
|||
pad->granuleshift = 0;
|
||||
pad->n_header_packets = 2;
|
||||
pad->first_granpos = -1;
|
||||
pad->forbid_start_clamping = TRUE;
|
||||
|
||||
/* pre-skip is in samples at 48000 Hz, which matches granule one for one */
|
||||
pad->granule_offset = -GST_READ_UINT16_LE (packet->packet + 10);
|
||||
|
|
|
@ -70,6 +70,7 @@ struct _GstOggStream
|
|||
gint bitrate;
|
||||
guint64 total_time;
|
||||
gboolean is_sparse;
|
||||
gboolean forbid_start_clamping;
|
||||
|
||||
GstCaps *caps;
|
||||
|
||||
|
|
Loading…
Reference in a new issue