moved init_decoder_context into constructor
moved free_decoder_context to destructor