changes missed while porting
Ported theora encoder