From 16e70c80aeb3d12f534651c59a35db615ee8cc0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 31 Aug 2008 15:01:32 +0000 Subject: ext/celt/gstceltdec.c: Correctly take the granulepos from upstream if possible and correctly handle the granulepos in... Original commit message from CVS: * ext/celt/gstceltdec.c: (celt_dec_chain_parse_data): Correctly take the granulepos from upstream if possible and correctly handle the granulepos in various calculations: the granulepos is the sample number of the _last_ sample in a frame, not the first. * ext/celt/gstceltenc.c: (gst_celt_enc_sinkevent), (gst_celt_enc_encode), (gst_celt_enc_chain), (gst_celt_enc_change_state): * ext/celt/gstceltenc.h: Handle non-zero start timestamps in the encoder and detect/handle stream discontinuities. Fixes bug #547075. --- ext/celt/gstceltenc.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ext/celt/gstceltenc.h') diff --git a/ext/celt/gstceltenc.h b/ext/celt/gstceltenc.h index cbb62440..6331f31c 100644 --- a/ext/celt/gstceltenc.h +++ b/ext/celt/gstceltenc.h @@ -76,6 +76,11 @@ struct _GstCeltEnc { GstTagList *tags; guint64 frameno; + guint64 frameno_out; + + GstClockTime start_ts; + GstClockTime next_ts; + guint64 granulepos_offset; }; struct _GstCeltEncClass { -- cgit v1.2.1