ext/theora/theoraenc.c (theora_enc_sink_setcaps)
authorAndy Wingo <wingo@pobox.com>
Mon, 30 Jan 2006 19:21:07 +0000 (19:21 +0000)
committerAndy Wingo <wingo@pobox.com>
Mon, 30 Jan 2006 19:21:07 +0000 (19:21 +0000)
commitf2476d444b24f4776bd640a9aac6e6ab2786619c
tree20d6bdb72a0c6608476e1e47d5d40d6cf3b46c2f
parent3f905bd710185a68839712a13bf420fd3969e3d2
ext/theora/theoraenc.c (theora_enc_sink_setcaps)

Original commit message from CVS:
2006-01-30  Andy Wingo  <wingo@pobox.com>

* ext/theora/theoraenc.c (theora_enc_sink_setcaps)
(gst_theora_enc_init): Pull the granule shift out of the encoder.
(granulepos_add): New function, handles the messiness of adjusting
granulepos values.
(theora_buffer_from_packet):
(theora_enc_chain):
(theora_enc_sink_event): Use granulepos_add, not +.

* tests/check/pipelines/theoraenc.c
(check_buffer_granulepos_from_starttime): Just check the frame
count, not the actual granulepos -- we can't dictate to the
encoder when it should be placing keyframes.
ChangeLog
ext/theora/gsttheoraenc.h
ext/theora/theoraenc.c
tests/check/pipelines/theoraenc.c